Package org.lwjgl.system.jawt
Class JAWTRectangle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.jawt.JAWTRectangle
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class JAWTRectangle extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJAWTRectangle.BufferAn array ofJAWTRectanglestructs.
-
Constructor Summary
Constructors Constructor Description JAWTRectangle(java.nio.ByteBuffer container)Creates aJAWTRectangleinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JAWTRectanglecalloc()Returns a newJAWTRectangleinstance allocated withmemCalloc.static JAWTRectangle.Buffercalloc(int capacity)Returns a newJAWTRectangle.Bufferinstance allocated withmemCalloc.static JAWTRectangle.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newJAWTRectangle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTRectanglecalloc(org.lwjgl.system.MemoryStack stack)Returns a newJAWTRectangleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTRectanglecallocStack()Deprecated.static JAWTRectangle.BuffercallocStack(int capacity)Deprecated.static JAWTRectangle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static JAWTRectanglecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static JAWTRectanglecreate()Returns a newJAWTRectangleinstance allocated withBufferUtils.static JAWTRectangle.Buffercreate(int capacity)Returns a newJAWTRectangle.Bufferinstance allocated withBufferUtils.static JAWTRectanglecreate(long address)Returns a newJAWTRectangleinstance for the specified memory address.static JAWTRectangle.Buffercreate(long address, int capacity)Create aJAWTRectangle.Bufferinstance at the specified memory.static JAWTRectanglecreateSafe(long address)static JAWTRectangle.BuffercreateSafe(long address, int capacity)intheight()the rectangle heightJAWTRectangleheight(int value)Sets the specified value to theheight()field.static JAWTRectanglemalloc()Returns a newJAWTRectangleinstance allocated withmemAlloc.static JAWTRectangle.Buffermalloc(int capacity)Returns a newJAWTRectangle.Bufferinstance allocated withmemAlloc.static JAWTRectangle.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newJAWTRectangle.Bufferinstance allocated on the specifiedMemoryStack.static JAWTRectanglemalloc(org.lwjgl.system.MemoryStack stack)Returns a newJAWTRectangleinstance allocated on the specifiedMemoryStack.static JAWTRectanglemallocStack()Deprecated.static JAWTRectangle.BuffermallocStack(int capacity)Deprecated.static JAWTRectangle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static JAWTRectanglemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnheight(long struct)Unsafe version ofheight().static voidnheight(long struct, int value)Unsafe version ofheight.static intnwidth(long struct)Unsafe version ofwidth().static voidnwidth(long struct, int value)Unsafe version ofwidth.static intnx(long struct)Unsafe version ofx().static voidnx(long struct, int value)Unsafe version ofx.static intny(long struct)Unsafe version ofy().static voidny(long struct, int value)Unsafe version ofy.JAWTRectangleset(int x, int y, int width, int height)Initializes this struct with the specified values.JAWTRectangleset(JAWTRectangle src)Copies the specified struct data to this struct.intsizeof()intwidth()the rectangle widthJAWTRectanglewidth(int value)Sets the specified value to thewidth()field.intx()the rectangle X axis coordinateJAWTRectanglex(int value)Sets the specified value to thex()field.inty()the rectangle Y axis coordinateJAWTRectangley(int value)Sets the specified value to they()field.
-
-
-
Constructor Detail
-
JAWTRectangle
public JAWTRectangle(java.nio.ByteBuffer container)
Creates aJAWTRectangleinstance 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
-
x
public int x()
the rectangle X axis coordinate
-
y
public int y()
the rectangle Y axis coordinate
-
width
public int width()
the rectangle width
-
height
public int height()
the rectangle height
-
x
public JAWTRectangle x(int value)
Sets the specified value to thex()field.
-
y
public JAWTRectangle y(int value)
Sets the specified value to they()field.
-
width
public JAWTRectangle width(int value)
Sets the specified value to thewidth()field.
-
height
public JAWTRectangle height(int value)
Sets the specified value to theheight()field.
-
set
public JAWTRectangle set(int x, int y, int width, int height)
Initializes this struct with the specified values.
-
set
public JAWTRectangle set(JAWTRectangle src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static JAWTRectangle malloc()
Returns a newJAWTRectangleinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static JAWTRectangle calloc()
Returns a newJAWTRectangleinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static JAWTRectangle create()
Returns a newJAWTRectangleinstance allocated withBufferUtils.
-
create
public static JAWTRectangle create(long address)
Returns a newJAWTRectangleinstance for the specified memory address.
-
createSafe
@Nullable public static JAWTRectangle createSafe(long address)
-
malloc
public static JAWTRectangle.Buffer malloc(int capacity)
Returns a newJAWTRectangle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static JAWTRectangle.Buffer calloc(int capacity)
Returns a newJAWTRectangle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTRectangle.Buffer create(int capacity)
Returns a newJAWTRectangle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTRectangle.Buffer create(long address, int capacity)
Create aJAWTRectangle.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static JAWTRectangle.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static JAWTRectangle mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static JAWTRectangle callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static JAWTRectangle mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static JAWTRectangle callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static JAWTRectangle.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static JAWTRectangle.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static JAWTRectangle.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 JAWTRectangle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static JAWTRectangle malloc(org.lwjgl.system.MemoryStack stack)
Returns a newJAWTRectangleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static JAWTRectangle calloc(org.lwjgl.system.MemoryStack stack)
Returns a newJAWTRectangleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static JAWTRectangle.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newJAWTRectangle.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static JAWTRectangle.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newJAWTRectangle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nx
public static int nx(long struct)
Unsafe version ofx().
-
ny
public static int ny(long struct)
Unsafe version ofy().
-
nwidth
public static int nwidth(long struct)
Unsafe version ofwidth().
-
nheight
public static int nheight(long struct)
Unsafe version ofheight().
-
nx
public static void nx(long struct, int value)Unsafe version ofx.
-
ny
public static void ny(long struct, int value)Unsafe version ofy.
-
nwidth
public static void nwidth(long struct, int value)Unsafe version ofwidth.
-
nheight
public static void nheight(long struct, int value)Unsafe version ofheight.
-
-