public class JAWTRectangle
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
x – the rectangle X axis coordinatey – the rectangle Y axis coordinatewidth – the rectangle widthheight – the rectangle height
struct JAWT_Rectangle {
jint x;
jint y;
jint width;
jint height;
}| Modifier and Type | Class and Description |
|---|---|
static class |
JAWTRectangle.Buffer
An array of
JAWTRectangle structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
JAWTRectangle(java.nio.ByteBuffer container)
Creates a
JAWTRectangle instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static JAWTRectangle |
calloc()
Returns a new
JAWTRectangle instance allocated with memCalloc. |
static JAWTRectangle.Buffer |
calloc(int capacity)
Returns a new
JAWTRectangle.Buffer instance allocated with memCalloc. |
static JAWTRectangle |
callocStack()
Returns a new
JAWTRectangle instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static JAWTRectangle.Buffer |
callocStack(int capacity)
Returns a new
JAWTRectangle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static JAWTRectangle.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
JAWTRectangle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static JAWTRectangle |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
JAWTRectangle instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static JAWTRectangle |
create()
Returns a new
JAWTRectangle instance allocated with BufferUtils. |
static JAWTRectangle.Buffer |
create(int capacity)
Returns a new
JAWTRectangle.Buffer instance allocated with BufferUtils. |
static JAWTRectangle |
create(long address)
Returns a new
JAWTRectangle instance for the specified memory address. |
static JAWTRectangle.Buffer |
create(long address,
int capacity)
Create a
JAWTRectangle.Buffer instance at the specified memory. |
static JAWTRectangle |
createSafe(long address)
|
static JAWTRectangle.Buffer |
createSafe(long address,
int capacity)
|
int |
height()
Returns the value of the
height field. |
JAWTRectangle |
height(int value)
Sets the specified value to the
height field. |
static JAWTRectangle |
malloc()
Returns a new
JAWTRectangle instance allocated with memAlloc. |
static JAWTRectangle.Buffer |
malloc(int capacity)
Returns a new
JAWTRectangle.Buffer instance allocated with memAlloc. |
static JAWTRectangle |
mallocStack()
Returns a new
JAWTRectangle instance allocated on the thread-local MemoryStack. |
static JAWTRectangle.Buffer |
mallocStack(int capacity)
Returns a new
JAWTRectangle.Buffer instance allocated on the thread-local MemoryStack. |
static JAWTRectangle.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
JAWTRectangle.Buffer instance allocated on the specified MemoryStack. |
static JAWTRectangle |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
JAWTRectangle instance allocated on the specified MemoryStack. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
static int |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
int value)
Unsafe version of
x. |
static int |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
int value)
Unsafe version of
y. |
JAWTRectangle |
set(int x,
int y,
int width,
int height)
Initializes this struct with the specified values.
|
JAWTRectangle |
set(JAWTRectangle src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
width()
Returns the value of the
width field. |
JAWTRectangle |
width(int value)
Sets the specified value to the
width field. |
int |
x()
Returns the value of the
x field. |
JAWTRectangle |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
JAWTRectangle |
y(int value)
Sets the specified value to the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public static final int WIDTH
public static final int HEIGHT
public JAWTRectangle(java.nio.ByteBuffer container)
JAWTRectangle instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int x()
x field.public int y()
y field.public int width()
width field.public int height()
height field.public JAWTRectangle x(int value)
x field.public JAWTRectangle y(int value)
y field.public JAWTRectangle width(int value)
width field.public JAWTRectangle height(int value)
height field.public JAWTRectangle set(int x, int y, int width, int height)
public JAWTRectangle set(JAWTRectangle src)
src - the source structpublic static JAWTRectangle malloc()
JAWTRectangle instance allocated with memAlloc. The instance must be explicitly freed.public static JAWTRectangle calloc()
JAWTRectangle instance allocated with memCalloc. The instance must be explicitly freed.public static JAWTRectangle create()
JAWTRectangle instance allocated with BufferUtils.public static JAWTRectangle create(long address)
JAWTRectangle instance for the specified memory address.@Nullable public static JAWTRectangle createSafe(long address)
public static JAWTRectangle.Buffer malloc(int capacity)
JAWTRectangle.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static JAWTRectangle.Buffer calloc(int capacity)
JAWTRectangle.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static JAWTRectangle.Buffer create(int capacity)
JAWTRectangle.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static JAWTRectangle.Buffer create(long address, int capacity)
JAWTRectangle.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static JAWTRectangle.Buffer createSafe(long address, int capacity)
public static JAWTRectangle mallocStack()
JAWTRectangle instance allocated on the thread-local MemoryStack.public static JAWTRectangle callocStack()
JAWTRectangle instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static JAWTRectangle mallocStack(org.lwjgl.system.MemoryStack stack)
JAWTRectangle instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static JAWTRectangle callocStack(org.lwjgl.system.MemoryStack stack)
JAWTRectangle instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static JAWTRectangle.Buffer mallocStack(int capacity)
JAWTRectangle.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static JAWTRectangle.Buffer callocStack(int capacity)
JAWTRectangle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static JAWTRectangle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
JAWTRectangle.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static JAWTRectangle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
JAWTRectangle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nx(long struct)
x().public static int ny(long struct)
y().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static void nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.Copyright LWJGL. All Rights Reserved. License terms.