SDL 2.0
VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT Struct Reference

#include <vulkan.hpp>

Public Member Functions

 DisplayPowerInfoEXT (DisplayPowerStateEXT powerState_=DisplayPowerStateEXT::eOff)
 
 DisplayPowerInfoEXT (VkDisplayPowerInfoEXT const &rhs)
 
DisplayPowerInfoEXToperator= (VkDisplayPowerInfoEXT const &rhs)
 
DisplayPowerInfoEXTsetPNext (const void *pNext_)
 
DisplayPowerInfoEXTsetPowerState (DisplayPowerStateEXT powerState_)
 
 operator VkDisplayPowerInfoEXT const & () const
 
 operator VkDisplayPowerInfoEXT & ()
 
bool operator== (DisplayPowerInfoEXT const &rhs) const
 
bool operator!= (DisplayPowerInfoEXT const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
DisplayPowerStateEXT powerState
 

Private Attributes

StructureType sType = StructureType::eDisplayPowerInfoEXT
 

Detailed Description

Definition at line 33732 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ DisplayPowerInfoEXT() [1/2]

VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::DisplayPowerInfoEXT ( DisplayPowerStateEXT  powerState_ = DisplayPowerStateEXT::eOff)
inline

Definition at line 33734 of file vulkan.hpp.

33735 : powerState( powerState_ )
33736 {
33737 }

◆ DisplayPowerInfoEXT() [2/2]

VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::DisplayPowerInfoEXT ( VkDisplayPowerInfoEXT const &  rhs)
inline

Definition at line 33739 of file vulkan.hpp.

33740 {
33741 memcpy( this, &rhs, sizeof( DisplayPowerInfoEXT ) );
33742 }
#define memcpy
Definition: SDL_malloc.c:630
DisplayPowerInfoEXT(DisplayPowerStateEXT powerState_=DisplayPowerStateEXT::eOff)
Definition: vulkan.hpp:33734

References memcpy.

Member Function Documentation

◆ operator VkDisplayPowerInfoEXT &()

VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::operator VkDisplayPowerInfoEXT & ( )
inline

Definition at line 33766 of file vulkan.hpp.

33767 {
33768 return *reinterpret_cast<VkDisplayPowerInfoEXT*>(this);
33769 }

◆ operator VkDisplayPowerInfoEXT const &()

VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::operator VkDisplayPowerInfoEXT const & ( ) const
inline

Definition at line 33761 of file vulkan.hpp.

33762 {
33763 return *reinterpret_cast<const VkDisplayPowerInfoEXT*>(this);
33764 }

◆ operator!=()

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

Definition at line 33778 of file vulkan.hpp.

33779 {
33780 return !operator==( rhs );
33781 }
bool operator==(DisplayPowerInfoEXT const &rhs) const
Definition: vulkan.hpp:33771

References operator==().

◆ operator=()

DisplayPowerInfoEXT & VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::operator= ( VkDisplayPowerInfoEXT const &  rhs)
inline

Definition at line 33744 of file vulkan.hpp.

33745 {
33746 memcpy( this, &rhs, sizeof( DisplayPowerInfoEXT ) );
33747 return *this;
33748 }

References memcpy.

◆ operator==()

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

Definition at line 33771 of file vulkan.hpp.

33772 {
33773 return ( sType == rhs.sType )
33774 && ( pNext == rhs.pNext )
33775 && ( powerState == rhs.powerState );
33776 }

References pNext, powerState, and sType.

Referenced by operator!=().

◆ setPNext()

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

Definition at line 33749 of file vulkan.hpp.

33750 {
33751 pNext = pNext_;
33752 return *this;
33753 }

References pNext.

◆ setPowerState()

DisplayPowerInfoEXT & VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::setPowerState ( DisplayPowerStateEXT  powerState_)
inline

Definition at line 33755 of file vulkan.hpp.

33756 {
33757 powerState = powerState_;
33758 return *this;
33759 }

References powerState.

Field Documentation

◆ pNext

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

Definition at line 33787 of file vulkan.hpp.

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

◆ powerState

DisplayPowerStateEXT VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::powerState

Definition at line 33788 of file vulkan.hpp.

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

◆ sType

StructureType VULKAN_HPP_NAMESPACE::DisplayPowerInfoEXT::sType = StructureType::eDisplayPowerInfoEXT
private

Definition at line 33784 of file vulkan.hpp.

Referenced by operator==().


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