SDL 2.0
VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR:

Public Member Functions

 DisplayPresentInfoKHR (Rect2D srcRect_=Rect2D(), Rect2D dstRect_=Rect2D(), Bool32 persistent_=0)
 
 DisplayPresentInfoKHR (VkDisplayPresentInfoKHR const &rhs)
 
DisplayPresentInfoKHRoperator= (VkDisplayPresentInfoKHR const &rhs)
 
DisplayPresentInfoKHRsetPNext (const void *pNext_)
 
DisplayPresentInfoKHRsetSrcRect (Rect2D srcRect_)
 
DisplayPresentInfoKHRsetDstRect (Rect2D dstRect_)
 
DisplayPresentInfoKHRsetPersistent (Bool32 persistent_)
 
 operator VkDisplayPresentInfoKHR const & () const
 
 operator VkDisplayPresentInfoKHR & ()
 
bool operator== (DisplayPresentInfoKHR const &rhs) const
 
bool operator!= (DisplayPresentInfoKHR const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
Rect2D srcRect
 
Rect2D dstRect
 
Bool32 persistent
 

Private Attributes

StructureType sType = StructureType::eDisplayPresentInfoKHR
 

Detailed Description

Definition at line 11810 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ DisplayPresentInfoKHR() [1/2]

VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::DisplayPresentInfoKHR ( Rect2D  srcRect_ = Rect2D(),
Rect2D  dstRect_ = Rect2D(),
Bool32  persistent_ = 0 
)
inline

Definition at line 11812 of file vulkan.hpp.

11815 : srcRect( srcRect_ )
11816 , dstRect( dstRect_ )
11817 , persistent( persistent_ )
11818 {
11819 }

◆ DisplayPresentInfoKHR() [2/2]

VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::DisplayPresentInfoKHR ( VkDisplayPresentInfoKHR const &  rhs)
inline

Definition at line 11821 of file vulkan.hpp.

11822 {
11823 memcpy( this, &rhs, sizeof( DisplayPresentInfoKHR ) );
11824 }
#define memcpy
Definition: SDL_malloc.c:630
DisplayPresentInfoKHR(Rect2D srcRect_=Rect2D(), Rect2D dstRect_=Rect2D(), Bool32 persistent_=0)
Definition: vulkan.hpp:11812

References memcpy.

Member Function Documentation

◆ operator VkDisplayPresentInfoKHR &()

VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::operator VkDisplayPresentInfoKHR & ( )
inline

Definition at line 11860 of file vulkan.hpp.

11861 {
11862 return *reinterpret_cast<VkDisplayPresentInfoKHR*>(this);
11863 }

◆ operator VkDisplayPresentInfoKHR const &()

VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::operator VkDisplayPresentInfoKHR const & ( ) const
inline

Definition at line 11855 of file vulkan.hpp.

11856 {
11857 return *reinterpret_cast<const VkDisplayPresentInfoKHR*>(this);
11858 }

◆ operator!=()

bool VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::operator!= ( DisplayPresentInfoKHR const &  rhs) const
inline

Definition at line 11874 of file vulkan.hpp.

11875 {
11876 return !operator==( rhs );
11877 }
bool operator==(DisplayPresentInfoKHR const &rhs) const
Definition: vulkan.hpp:11865

References operator==().

◆ operator=()

DisplayPresentInfoKHR & VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::operator= ( VkDisplayPresentInfoKHR const &  rhs)
inline

Definition at line 11826 of file vulkan.hpp.

11827 {
11828 memcpy( this, &rhs, sizeof( DisplayPresentInfoKHR ) );
11829 return *this;
11830 }

References memcpy.

◆ operator==()

bool VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::operator== ( DisplayPresentInfoKHR const &  rhs) const
inline

Definition at line 11865 of file vulkan.hpp.

11866 {
11867 return ( sType == rhs.sType )
11868 && ( pNext == rhs.pNext )
11869 && ( srcRect == rhs.srcRect )
11870 && ( dstRect == rhs.dstRect )
11871 && ( persistent == rhs.persistent );
11872 }

References dstRect, persistent, pNext, srcRect, and sType.

Referenced by operator!=().

◆ setDstRect()

DisplayPresentInfoKHR & VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::setDstRect ( Rect2D  dstRect_)
inline

Definition at line 11843 of file vulkan.hpp.

11844 {
11845 dstRect = dstRect_;
11846 return *this;
11847 }

References dstRect.

◆ setPersistent()

DisplayPresentInfoKHR & VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::setPersistent ( Bool32  persistent_)
inline

Definition at line 11849 of file vulkan.hpp.

11850 {
11851 persistent = persistent_;
11852 return *this;
11853 }

References persistent.

◆ setPNext()

DisplayPresentInfoKHR & VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::setPNext ( const void pNext_)
inline

Definition at line 11831 of file vulkan.hpp.

11832 {
11833 pNext = pNext_;
11834 return *this;
11835 }

References pNext.

◆ setSrcRect()

DisplayPresentInfoKHR & VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::setSrcRect ( Rect2D  srcRect_)
inline

Definition at line 11837 of file vulkan.hpp.

11838 {
11839 srcRect = srcRect_;
11840 return *this;
11841 }

References srcRect.

Field Documentation

◆ dstRect

Rect2D VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::dstRect

Definition at line 11885 of file vulkan.hpp.

Referenced by operator==(), and setDstRect().

◆ persistent

Bool32 VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::persistent

Definition at line 11886 of file vulkan.hpp.

Referenced by operator==(), and setPersistent().

◆ pNext

const void* VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::pNext = nullptr

Definition at line 11883 of file vulkan.hpp.

Referenced by operator==(), and setPNext().

◆ srcRect

Rect2D VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::srcRect

Definition at line 11884 of file vulkan.hpp.

Referenced by operator==(), and setSrcRect().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::DisplayPresentInfoKHR::sType = StructureType::eDisplayPresentInfoKHR
private

Definition at line 11880 of file vulkan.hpp.

Referenced by operator==().


The documentation for this struct was generated from the following file: