Package org.lwjgl.openvr
Class IntersectionMaskRectangle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.IntersectionMaskRectangle
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IntersectionMaskRectangle extends org.lwjgl.system.Struct 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 Classes Modifier and Type Class Description static class
IntersectionMaskRectangle.Buffer
An array ofIntersectionMaskRectangle
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_FLHEIGHT
M_FLTOPLEFTX
M_FLTOPLEFTY
M_FLWIDTHThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description IntersectionMaskRectangle(java.nio.ByteBuffer container)
Creates aIntersectionMaskRectangle
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntersectionMaskRectangle
calloc()
Returns a newIntersectionMaskRectangle
instance allocated withmemCalloc
.static IntersectionMaskRectangle.Buffer
calloc(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated withmemCalloc
.static IntersectionMaskRectangle
callocStack()
Returns a newIntersectionMaskRectangle
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static IntersectionMaskRectangle.Buffer
callocStack(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static IntersectionMaskRectangle.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IntersectionMaskRectangle
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IntersectionMaskRectangle
create()
Returns a newIntersectionMaskRectangle
instance allocated withBufferUtils
.static IntersectionMaskRectangle.Buffer
create(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated withBufferUtils
.static IntersectionMaskRectangle
create(long address)
Returns a newIntersectionMaskRectangle
instance for the specified memory address.static IntersectionMaskRectangle.Buffer
create(long address, int capacity)
Create aIntersectionMaskRectangle.Buffer
instance at the specified memory.static IntersectionMaskRectangle
createSafe(long address)
static IntersectionMaskRectangle.Buffer
createSafe(long address, int capacity)
float
m_flHeight()
Returns the value of them_flHeight
field.IntersectionMaskRectangle
m_flHeight(float value)
Sets the specified value to them_flHeight
field.float
m_flTopLeftX()
Returns the value of them_flTopLeftX
field.IntersectionMaskRectangle
m_flTopLeftX(float value)
Sets the specified value to them_flTopLeftX
field.float
m_flTopLeftY()
Returns the value of them_flTopLeftY
field.IntersectionMaskRectangle
m_flTopLeftY(float value)
Sets the specified value to them_flTopLeftY
field.float
m_flWidth()
Returns the value of them_flWidth
field.IntersectionMaskRectangle
m_flWidth(float value)
Sets the specified value to them_flWidth
field.static IntersectionMaskRectangle
malloc()
Returns a newIntersectionMaskRectangle
instance allocated withmemAlloc
.static IntersectionMaskRectangle.Buffer
malloc(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated withmemAlloc
.static IntersectionMaskRectangle
mallocStack()
Returns a newIntersectionMaskRectangle
instance allocated on the thread-localMemoryStack
.static IntersectionMaskRectangle.Buffer
mallocStack(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the thread-localMemoryStack
.static IntersectionMaskRectangle.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the specifiedMemoryStack
.static IntersectionMaskRectangle
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle
instance allocated on the specifiedMemoryStack
.static float
nm_flHeight(long struct)
Unsafe version ofm_flHeight()
.static void
nm_flHeight(long struct, float value)
Unsafe version ofm_flHeight
.static float
nm_flTopLeftX(long struct)
Unsafe version ofm_flTopLeftX()
.static void
nm_flTopLeftX(long struct, float value)
Unsafe version ofm_flTopLeftX
.static float
nm_flTopLeftY(long struct)
Unsafe version ofm_flTopLeftY()
.static void
nm_flTopLeftY(long struct, float value)
Unsafe version ofm_flTopLeftY
.static float
nm_flWidth(long struct)
Unsafe version ofm_flWidth()
.static void
nm_flWidth(long struct, float value)
Unsafe version ofm_flWidth
.IntersectionMaskRectangle
set(float m_flTopLeftX, float m_flTopLeftY, float m_flWidth, float m_flHeight)
Initializes this struct with the specified values.IntersectionMaskRectangle
set(IntersectionMaskRectangle src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
IntersectionMaskRectangle
public IntersectionMaskRectangle(java.nio.ByteBuffer container)
Creates aIntersectionMaskRectangle
instance at the current position of the specifiedByteBuffer
container. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
m_flTopLeftX
public float m_flTopLeftX()
Returns the value of them_flTopLeftX
field.
-
m_flTopLeftY
public float m_flTopLeftY()
Returns the value of them_flTopLeftY
field.
-
m_flWidth
public float m_flWidth()
Returns the value of them_flWidth
field.
-
m_flHeight
public float m_flHeight()
Returns the value of them_flHeight
field.
-
m_flTopLeftX
public IntersectionMaskRectangle m_flTopLeftX(float value)
Sets the specified value to them_flTopLeftX
field.
-
m_flTopLeftY
public IntersectionMaskRectangle m_flTopLeftY(float value)
Sets the specified value to them_flTopLeftY
field.
-
m_flWidth
public IntersectionMaskRectangle m_flWidth(float value)
Sets the specified value to them_flWidth
field.
-
m_flHeight
public IntersectionMaskRectangle m_flHeight(float value)
Sets the specified value to them_flHeight
field.
-
set
public IntersectionMaskRectangle set(float m_flTopLeftX, float m_flTopLeftY, float m_flWidth, float m_flHeight)
Initializes this struct with the specified values.
-
set
public IntersectionMaskRectangle set(IntersectionMaskRectangle src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IntersectionMaskRectangle malloc()
Returns a newIntersectionMaskRectangle
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IntersectionMaskRectangle calloc()
Returns a newIntersectionMaskRectangle
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IntersectionMaskRectangle create()
Returns a newIntersectionMaskRectangle
instance allocated withBufferUtils
.
-
create
public static IntersectionMaskRectangle create(long address)
Returns a newIntersectionMaskRectangle
instance for the specified memory address.
-
createSafe
@Nullable public static IntersectionMaskRectangle createSafe(long address)
-
malloc
public static IntersectionMaskRectangle.Buffer malloc(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IntersectionMaskRectangle.Buffer calloc(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IntersectionMaskRectangle.Buffer create(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IntersectionMaskRectangle.Buffer create(long address, int capacity)
Create aIntersectionMaskRectangle.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IntersectionMaskRectangle.Buffer createSafe(long address, int capacity)
-
mallocStack
public static IntersectionMaskRectangle mallocStack()
Returns a newIntersectionMaskRectangle
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static IntersectionMaskRectangle callocStack()
Returns a newIntersectionMaskRectangle
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static IntersectionMaskRectangle mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static IntersectionMaskRectangle callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static IntersectionMaskRectangle.Buffer mallocStack(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static IntersectionMaskRectangle.Buffer callocStack(int capacity)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static IntersectionMaskRectangle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static IntersectionMaskRectangle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-