SDL 2.0
VULKAN_HPP_NAMESPACE::Offset2D Struct Reference

#include <vulkan.hpp>

Public Member Functions

 Offset2D (int32_t x_=0, int32_t y_=0)
 
 Offset2D (VkOffset2D const &rhs)
 
Offset2Doperator= (VkOffset2D const &rhs)
 
Offset2DsetX (int32_t x_)
 
Offset2DsetY (int32_t y_)
 
 operator VkOffset2D const & () const
 
 operator VkOffset2D & ()
 
bool operator== (Offset2D const &rhs) const
 
bool operator!= (Offset2D const &rhs) const
 

Data Fields

int32_t x
 
int32_t y
 

Detailed Description

Definition at line 5092 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Offset2D() [1/2]

VULKAN_HPP_NAMESPACE::Offset2D::Offset2D ( int32_t  x_ = 0,
int32_t  y_ = 0 
)
inline

Definition at line 5094 of file vulkan.hpp.

5096 : x( x_ )
5097 , y( y_ )
5098 {
5099 }

◆ Offset2D() [2/2]

VULKAN_HPP_NAMESPACE::Offset2D::Offset2D ( VkOffset2D const &  rhs)
inline

Definition at line 5101 of file vulkan.hpp.

5102 {
5103 memcpy( this, &rhs, sizeof( Offset2D ) );
5104 }
#define memcpy
Definition: SDL_malloc.c:630
Offset2D(int32_t x_=0, int32_t y_=0)
Definition: vulkan.hpp:5094

References memcpy.

Member Function Documentation

◆ operator VkOffset2D &()

VULKAN_HPP_NAMESPACE::Offset2D::operator VkOffset2D & ( )
inline

Definition at line 5128 of file vulkan.hpp.

5129 {
5130 return *reinterpret_cast<VkOffset2D*>(this);
5131 }

◆ operator VkOffset2D const &()

VULKAN_HPP_NAMESPACE::Offset2D::operator VkOffset2D const & ( ) const
inline

Definition at line 5123 of file vulkan.hpp.

5124 {
5125 return *reinterpret_cast<const VkOffset2D*>(this);
5126 }

◆ operator!=()

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

Definition at line 5139 of file vulkan.hpp.

5140 {
5141 return !operator==( rhs );
5142 }
bool operator==(Offset2D const &rhs) const
Definition: vulkan.hpp:5133

References operator==().

◆ operator=()

Offset2D & VULKAN_HPP_NAMESPACE::Offset2D::operator= ( VkOffset2D const &  rhs)
inline

Definition at line 5106 of file vulkan.hpp.

5107 {
5108 memcpy( this, &rhs, sizeof( Offset2D ) );
5109 return *this;
5110 }

References memcpy.

◆ operator==()

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

Definition at line 5133 of file vulkan.hpp.

5134 {
5135 return ( x == rhs.x )
5136 && ( y == rhs.y );
5137 }
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574

References x, and y.

Referenced by operator!=().

◆ setX()

Offset2D & VULKAN_HPP_NAMESPACE::Offset2D::setX ( int32_t  x_)
inline

Definition at line 5111 of file vulkan.hpp.

5112 {
5113 x = x_;
5114 return *this;
5115 }

◆ setY()

Offset2D & VULKAN_HPP_NAMESPACE::Offset2D::setY ( int32_t  y_)
inline

Definition at line 5117 of file vulkan.hpp.

5118 {
5119 y = y_;
5120 return *this;
5121 }

Field Documentation

◆ x

int32_t VULKAN_HPP_NAMESPACE::Offset2D::x

Definition at line 5144 of file vulkan.hpp.

Referenced by operator==().

◆ y

int32_t VULKAN_HPP_NAMESPACE::Offset2D::y

Definition at line 5145 of file vulkan.hpp.

Referenced by operator==().


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