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.NativeResourceLayout
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 classIntersectionMaskRectangle.BufferAn array ofIntersectionMaskRectanglestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_FLHEIGHT
M_FLTOPLEFTX
M_FLTOPLEFTY
M_FLWIDTHThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description IntersectionMaskRectangle(java.nio.ByteBuffer container)Creates aIntersectionMaskRectangleinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntersectionMaskRectanglecalloc()Returns a newIntersectionMaskRectangleinstance allocated withmemCalloc.static IntersectionMaskRectangle.Buffercalloc(int capacity)Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemCalloc.static IntersectionMaskRectanglecallocStack()Returns a newIntersectionMaskRectangleinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static IntersectionMaskRectangle.BuffercallocStack(int capacity)Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static IntersectionMaskRectangle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskRectanglecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskRectanglecreate()Returns a newIntersectionMaskRectangleinstance allocated withBufferUtils.static IntersectionMaskRectangle.Buffercreate(int capacity)Returns a newIntersectionMaskRectangle.Bufferinstance allocated withBufferUtils.static IntersectionMaskRectanglecreate(long address)Returns a newIntersectionMaskRectangleinstance for the specified memory address.static IntersectionMaskRectangle.Buffercreate(long address, int capacity)Create aIntersectionMaskRectangle.Bufferinstance at the specified memory.static IntersectionMaskRectanglecreateSafe(long address)static IntersectionMaskRectangle.BuffercreateSafe(long address, int capacity)floatm_flHeight()Returns the value of them_flHeightfield.IntersectionMaskRectanglem_flHeight(float value)Sets the specified value to them_flHeightfield.floatm_flTopLeftX()Returns the value of them_flTopLeftXfield.IntersectionMaskRectanglem_flTopLeftX(float value)Sets the specified value to them_flTopLeftXfield.floatm_flTopLeftY()Returns the value of them_flTopLeftYfield.IntersectionMaskRectanglem_flTopLeftY(float value)Sets the specified value to them_flTopLeftYfield.floatm_flWidth()Returns the value of them_flWidthfield.IntersectionMaskRectanglem_flWidth(float value)Sets the specified value to them_flWidthfield.static IntersectionMaskRectanglemalloc()Returns a newIntersectionMaskRectangleinstance allocated withmemAlloc.static IntersectionMaskRectangle.Buffermalloc(int capacity)Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemAlloc.static IntersectionMaskRectanglemallocStack()Returns a newIntersectionMaskRectangleinstance allocated on the thread-localMemoryStack.static IntersectionMaskRectangle.BuffermallocStack(int capacity)Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the thread-localMemoryStack.static IntersectionMaskRectangle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the specifiedMemoryStack.static IntersectionMaskRectanglemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStack.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.IntersectionMaskRectangleset(float m_flTopLeftX, float m_flTopLeftY, float m_flWidth, float m_flHeight)Initializes this struct with the specified values.IntersectionMaskRectangleset(IntersectionMaskRectangle src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
IntersectionMaskRectangle
public IntersectionMaskRectangle(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
m_flTopLeftX
public float m_flTopLeftX()
Returns the value of them_flTopLeftXfield.
-
m_flTopLeftY
public float m_flTopLeftY()
Returns the value of them_flTopLeftYfield.
-
m_flWidth
public float m_flWidth()
Returns the value of them_flWidthfield.
-
m_flHeight
public float m_flHeight()
Returns the value of them_flHeightfield.
-
m_flTopLeftX
public IntersectionMaskRectangle m_flTopLeftX(float value)
Sets the specified value to them_flTopLeftXfield.
-
m_flTopLeftY
public IntersectionMaskRectangle m_flTopLeftY(float value)
Sets the specified value to them_flTopLeftYfield.
-
m_flWidth
public IntersectionMaskRectangle m_flWidth(float value)
Sets the specified value to them_flWidthfield.
-
m_flHeight
public IntersectionMaskRectangle m_flHeight(float value)
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
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 newIntersectionMaskRectangleinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IntersectionMaskRectangle calloc()
Returns a newIntersectionMaskRectangleinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IntersectionMaskRectangle create()
Returns a newIntersectionMaskRectangleinstance allocated withBufferUtils.
-
create
public static IntersectionMaskRectangle create(long address)
Returns a newIntersectionMaskRectangleinstance for the specified memory address.
-
createSafe
@Nullable public static IntersectionMaskRectangle createSafe(long address)
-
malloc
public static IntersectionMaskRectangle.Buffer malloc(int capacity)
Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IntersectionMaskRectangle.Buffer calloc(int capacity)
Returns a newIntersectionMaskRectangle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IntersectionMaskRectangle.Buffer create(int capacity)
Returns a newIntersectionMaskRectangle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IntersectionMaskRectangle.Buffer create(long address, int capacity)
Create aIntersectionMaskRectangle.Bufferinstance 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 newIntersectionMaskRectangleinstance allocated on the thread-localMemoryStack.
-
callocStack
public static IntersectionMaskRectangle callocStack()
Returns a newIntersectionMaskRectangleinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static IntersectionMaskRectangle mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static IntersectionMaskRectangle callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskRectangleinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static IntersectionMaskRectangle.Buffer callocStack(int capacity)
Returns a newIntersectionMaskRectangle.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-