Package org.lwjgl.system.windows
Class RECT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.RECT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class RECT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRECT.BufferAn array ofRECTstructs.
-
Constructor Summary
Constructors Constructor Description RECT(java.nio.ByteBuffer container)Creates aRECTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intbottom()the y-coordinate of the lower-right corner of the rectangleRECTbottom(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 RECTcallocStack()Deprecated.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 RECTcreateSafe(long address)static RECT.BuffercreateSafe(long address, int capacity)intleft()the x-coordinate of the upper-left corner of the rectangleRECTleft(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 RECTmallocStack()Deprecated.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 rectangleRECTright(int value)Sets the specified value to theright()field.RECTset(int left, int top, int right, int bottom)Initializes this struct with the specified values.RECTset(RECT src)Copies the specified struct data to this struct.intsizeof()inttop()the y-coordinate of the upper-left corner of the rectangleRECTtop(int value)Sets the specified value to thetop()field.
-
-
-
Constructor Detail
-
RECT
public RECT(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
-
set
public RECT set(int left, int top, int right, int bottom)
Initializes this struct with the specified values.
-
set
public RECT set(RECT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static RECT malloc()
Returns a newRECTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static RECT calloc()
Returns a newRECTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static RECT create()
Returns a newRECTinstance allocated withBufferUtils.
-
create
public static RECT create(long address)
Returns a newRECTinstance for the specified memory address.
-
createSafe
@Nullable public static RECT createSafe(long address)
-
malloc
public static RECT.Buffer malloc(int capacity)
Returns a newRECT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static RECT.Buffer calloc(int capacity)
Returns a newRECT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static RECT.Buffer create(int capacity)
Returns a newRECT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static RECT.Buffer create(long address, int capacity)
Create aRECT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static RECT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static RECT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RECT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RECT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RECT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RECT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static RECT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static RECT.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 RECT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static RECT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newRECTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static RECT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newRECTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static RECT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRECT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static RECT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRECT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-