Package org.lwjgl.openvr
Class IntersectionMaskRectangle
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IntersectionMaskRectangle>
org.lwjgl.openvr.IntersectionMaskRectangle
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IntersectionMaskRectangle
extends org.lwjgl.system.Struct<IntersectionMaskRectangle>
implements org.lwjgl.system.NativeResource
Layout
struct IntersectionMaskRectangle_t {
float m_flTopLeftX;
float m_flTopLeftY;
float m_flWidth;
float m_flHeight;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIntersectionMaskRectangle(ByteBuffer container) Creates aIntersectionMaskRectangleinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionMaskRectanglecalloc()Returns a newIntersectionMaskRectangleinstance allocated withmemCalloc.calloc(int capacity) Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskRectanglecalloc(org.lwjgl.system.MemoryStack stack) Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskRectangleDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static IntersectionMaskRectanglecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static IntersectionMaskRectanglecreate()Returns a newIntersectionMaskRectangleinstance allocated withBufferUtils.create(int capacity) Returns a newIntersectionMaskRectangle.Bufferinstance allocated withBufferUtils.static IntersectionMaskRectanglecreate(long address) Returns a newIntersectionMaskRectangleinstance for the specified memory address.create(long address, int capacity) Create aIntersectionMaskRectangle.Bufferinstance at the specified memory.static @Nullable IntersectionMaskRectanglecreateSafe(long address) static @Nullable IntersectionMaskRectangle.BuffercreateSafe(long address, int capacity) floatm_flHeight(float value) Sets the specified value to them_flHeightfield.floatm_flTopLeftX(float value) Sets the specified value to them_flTopLeftXfield.floatm_flTopLeftY(float value) Sets the specified value to them_flTopLeftYfield.floatm_flWidth(float value) Sets the specified value to them_flWidthfield.static IntersectionMaskRectanglemalloc()Returns a newIntersectionMaskRectangleinstance allocated withmemAlloc.malloc(int capacity) Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the specifiedMemoryStack.static IntersectionMaskRectanglemalloc(org.lwjgl.system.MemoryStack stack) Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStack.static IntersectionMaskRectangleDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static IntersectionMaskRectanglemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static floatnm_flHeight(long struct) Unsafe version ofm_flHeight().static voidnm_flHeight(long struct, float value) Unsafe version ofm_flHeight.static floatnm_flTopLeftX(long struct) Unsafe version ofm_flTopLeftX().static voidnm_flTopLeftX(long struct, float value) Unsafe version ofm_flTopLeftX.static floatnm_flTopLeftY(long struct) Unsafe version ofm_flTopLeftY().static voidnm_flTopLeftY(long struct, float value) Unsafe version ofm_flTopLeftY.static floatnm_flWidth(long struct) Unsafe version ofm_flWidth().static voidnm_flWidth(long struct, float value) Unsafe version ofm_flWidth.set(float m_flTopLeftX, float m_flTopLeftY, float m_flWidth, float m_flHeight) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_FLTOPLEFTX
public static final int M_FLTOPLEFTXThe struct member offsets. -
M_FLTOPLEFTY
public static final int M_FLTOPLEFTYThe struct member offsets. -
M_FLWIDTH
public static final int M_FLWIDTHThe struct member offsets. -
M_FLHEIGHT
public static final int M_FLHEIGHTThe struct member offsets.
-
-
Constructor Details
-
IntersectionMaskRectangle
Creates aIntersectionMaskRectangleinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<IntersectionMaskRectangle>
-
m_flTopLeftX
public float m_flTopLeftX()- Returns:
- the value of the
m_flTopLeftXfield.
-
m_flTopLeftY
public float m_flTopLeftY()- Returns:
- the value of the
m_flTopLeftYfield.
-
m_flWidth
public float m_flWidth()- Returns:
- the value of the
m_flWidthfield.
-
m_flHeight
public float m_flHeight()- Returns:
- the value of the
m_flHeightfield.
-
m_flTopLeftX
Sets the specified value to them_flTopLeftXfield. -
m_flTopLeftY
Sets the specified value to them_flTopLeftYfield. -
m_flWidth
Sets the specified value to them_flWidthfield. -
m_flHeight
Sets the specified value to them_flHeightfield. -
set
public IntersectionMaskRectangle set(float m_flTopLeftX, float m_flTopLeftY, float m_flWidth, float m_flHeight) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newIntersectionMaskRectangleinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIntersectionMaskRectangleinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIntersectionMaskRectangleinstance allocated withBufferUtils. -
create
Returns a newIntersectionMaskRectangleinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIntersectionMaskRectangle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIntersectionMaskRectangle.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static IntersectionMaskRectangle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static IntersectionMaskRectangle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IntersectionMaskRectangle.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static IntersectionMaskRectangle.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nm_flTopLeftX
public static float nm_flTopLeftX(long struct) Unsafe version ofm_flTopLeftX(). -
nm_flTopLeftY
public static float nm_flTopLeftY(long struct) Unsafe version ofm_flTopLeftY(). -
nm_flWidth
public static float nm_flWidth(long struct) Unsafe version ofm_flWidth(). -
nm_flHeight
public static float nm_flHeight(long struct) Unsafe version ofm_flHeight(). -
nm_flTopLeftX
public static void nm_flTopLeftX(long struct, float value) Unsafe version ofm_flTopLeftX. -
nm_flTopLeftY
public static void nm_flTopLeftY(long struct, float value) Unsafe version ofm_flTopLeftY. -
nm_flWidth
public static void nm_flWidth(long struct, float value) Unsafe version ofm_flWidth. -
nm_flHeight
public static void nm_flHeight(long struct, float value) Unsafe version ofm_flHeight.
-