Package org.lwjgl.system.windows
Class RECT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RECT>
org.lwjgl.system.windows.RECT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionRECT(ByteBuffer container) Creates aRECTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()the y-coordinate of the lower-right corner of the rectanglebottom(int value) Sets the specified value to thebottom()field.static RECTcalloc()Returns a newRECTinstance allocated withmemCalloc.static RECT.Buffercalloc(int capacity) Returns a newRECT.Bufferinstance allocated withmemCalloc.static RECT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newRECT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RECTcalloc(org.lwjgl.system.MemoryStack stack) Returns a newRECTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RECTDeprecated.static RECT.BuffercallocStack(int capacity) Deprecated.static RECT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static RECTcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static RECTcreate()Returns a newRECTinstance allocated withBufferUtils.static RECT.Buffercreate(int capacity) Returns a newRECT.Bufferinstance allocated withBufferUtils.static RECTcreate(long address) Returns a newRECTinstance for the specified memory address.static RECT.Buffercreate(long address, int capacity) Create aRECT.Bufferinstance at the specified memory.static @Nullable RECTcreateSafe(long address) static @Nullable RECT.BuffercreateSafe(long address, int capacity) intleft()the x-coordinate of the upper-left corner of the rectangleleft(int value) Sets the specified value to theleft()field.static RECTmalloc()Returns a newRECTinstance allocated withmemAlloc.static RECT.Buffermalloc(int capacity) Returns a newRECT.Bufferinstance allocated withmemAlloc.static RECT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newRECT.Bufferinstance allocated on the specifiedMemoryStack.static RECTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newRECTinstance allocated on the specifiedMemoryStack.static RECTDeprecated.static RECT.BuffermallocStack(int capacity) Deprecated.static RECT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static RECTmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnbottom(long struct) Unsafe version ofbottom().static voidnbottom(long struct, int value) Unsafe version ofbottom.static intnleft(long struct) Unsafe version ofleft().static voidnleft(long struct, int value) Unsafe version ofleft.static intnright(long struct) Unsafe version ofright().static voidnright(long struct, int value) Unsafe version ofright.static intntop(long struct) Unsafe version oftop().static voidntop(long struct, int value) Unsafe version oftop.intright()the x-coordinate of the lower-right corner of the rectangleright(int value) Sets the specified value to theright()field.set(int left, int top, int right, int bottom) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()inttop()the y-coordinate of the upper-left corner of the rectangletop(int value) Sets the specified value to thetop()field.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. -
LEFT
public static final int LEFTThe struct member offsets. -
TOP
public static final int TOPThe struct member offsets. -
RIGHT
public static final int RIGHTThe struct member offsets. -
BOTTOM
public static final int BOTTOMThe struct member offsets.
-
-
Constructor Details
-
RECT
Creates aRECTinstance 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<RECT>
-
left
public int left()the x-coordinate of the upper-left corner of the rectangle -
top
public int top()the y-coordinate of the upper-left corner of the rectangle -
right
public int right()the x-coordinate of the lower-right corner of the rectangle -
bottom
public int bottom()the y-coordinate of the lower-right corner of the rectangle -
left
Sets the specified value to theleft()field. -
top
Sets the specified value to thetop()field. -
right
Sets the specified value to theright()field. -
bottom
Sets the specified value to thebottom()field. -
set
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 newRECTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newRECTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newRECTinstance allocated withBufferUtils. -
create
Returns a newRECTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newRECT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newRECT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newRECT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aRECT.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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newRECTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newRECTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newRECT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newRECT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nleft
public static int nleft(long struct) Unsafe version ofleft(). -
ntop
public static int ntop(long struct) Unsafe version oftop(). -
nright
public static int nright(long struct) Unsafe version ofright(). -
nbottom
public static int nbottom(long struct) Unsafe version ofbottom(). -
nleft
public static void nleft(long struct, int value) Unsafe version ofleft. -
ntop
public static void ntop(long struct, int value) Unsafe version oftop. -
nright
public static void nright(long struct, int value) Unsafe version ofright. -
nbottom
public static void nbottom(long struct, int value) Unsafe version ofbottom.
-