public class UIRect
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct UIrect {
union {
int v[4];
struct {
int x;
int y;
int w;
int h;
};
};
}| Modifier and Type | Class and Description |
|---|---|
static class |
UIRect.Buffer
An array of
UIRect structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
H
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
V
The struct member offsets.
|
static int |
W
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
UIRect(java.nio.ByteBuffer container)
Creates a
UIRect instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static UIRect |
calloc()
Returns a new
UIRect instance allocated with memCalloc. |
static UIRect.Buffer |
calloc(int capacity)
Returns a new
UIRect.Buffer instance allocated with memCalloc. |
static UIRect |
callocStack()
Returns a new
UIRect instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static UIRect.Buffer |
callocStack(int capacity)
Returns a new
UIRect.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static UIRect.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
UIRect.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static UIRect |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
UIRect instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static UIRect |
create()
Returns a new
UIRect instance allocated with BufferUtils. |
static UIRect.Buffer |
create(int capacity)
Returns a new
UIRect.Buffer instance allocated with BufferUtils. |
static UIRect |
create(long address)
Returns a new
UIRect instance for the specified memory address. |
static UIRect.Buffer |
create(long address,
int capacity)
Create a
UIRect.Buffer instance at the specified memory. |
static UIRect |
createSafe(long address)
|
static UIRect.Buffer |
createSafe(long address,
int capacity)
|
int |
h()
Returns the value of the
h field. |
UIRect |
h(int value)
Sets the specified value to the
h field. |
static UIRect |
malloc()
Returns a new
UIRect instance allocated with memAlloc. |
static UIRect.Buffer |
malloc(int capacity)
Returns a new
UIRect.Buffer instance allocated with memAlloc. |
static UIRect |
mallocStack()
Returns a new
UIRect instance allocated on the thread-local MemoryStack. |
static UIRect.Buffer |
mallocStack(int capacity)
Returns a new
UIRect.Buffer instance allocated on the thread-local MemoryStack. |
static UIRect.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
UIRect.Buffer instance allocated on the specified MemoryStack. |
static UIRect |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
UIRect instance allocated on the specified MemoryStack. |
static int |
nh(long struct)
Unsafe version of
h(). |
static void |
nh(long struct,
int value)
Unsafe version of
h. |
static java.nio.IntBuffer |
nv(long struct)
Unsafe version of
v(). |
static int |
nv(long struct,
int index)
Unsafe version of
v. |
static void |
nv(long struct,
java.nio.IntBuffer value)
Unsafe version of
v. |
static void |
nv(long struct,
int index,
int value)
Unsafe version of
v. |
static int |
nw(long struct)
Unsafe version of
w(). |
static void |
nw(long struct,
int value)
Unsafe version of
w. |
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. |
UIRect |
set(UIRect src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
java.nio.IntBuffer |
v()
Returns a
IntBuffer view of the v field. |
int |
v(int index)
Returns the value at the specified index of the
v field. |
UIRect |
v(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the v field. |
UIRect |
v(int index,
int value)
Sets the specified value at the specified index of the
v field. |
int |
w()
Returns the value of the
w field. |
UIRect |
w(int value)
Sets the specified value to the
w field. |
int |
x()
Returns the value of the
x field. |
UIRect |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
UIRect |
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 V
public static final int X
public static final int Y
public static final int W
public static final int H
public UIRect(java.nio.ByteBuffer container)
UIRect 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 java.nio.IntBuffer v()
IntBuffer view of the v field.public int v(int index)
v field.public int x()
x field.public int y()
y field.public int w()
w field.public int h()
h field.public UIRect v(java.nio.IntBuffer value)
IntBuffer to the v field.public UIRect v(int index, int value)
v field.public UIRect x(int value)
x field.public UIRect y(int value)
y field.public UIRect w(int value)
w field.public UIRect h(int value)
h field.public UIRect set(UIRect src)
src - the source structpublic static UIRect malloc()
UIRect instance allocated with memAlloc. The instance must be explicitly freed.public static UIRect calloc()
UIRect instance allocated with memCalloc. The instance must be explicitly freed.public static UIRect create()
UIRect instance allocated with BufferUtils.public static UIRect create(long address)
UIRect instance for the specified memory address.@Nullable public static UIRect createSafe(long address)
public static UIRect.Buffer malloc(int capacity)
UIRect.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static UIRect.Buffer calloc(int capacity)
UIRect.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static UIRect.Buffer create(int capacity)
UIRect.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static UIRect.Buffer create(long address, int capacity)
UIRect.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static UIRect.Buffer createSafe(long address, int capacity)
public static UIRect mallocStack()
UIRect instance allocated on the thread-local MemoryStack.public static UIRect callocStack()
UIRect instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static UIRect mallocStack(org.lwjgl.system.MemoryStack stack)
UIRect instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static UIRect callocStack(org.lwjgl.system.MemoryStack stack)
UIRect instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static UIRect.Buffer mallocStack(int capacity)
UIRect.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static UIRect.Buffer callocStack(int capacity)
UIRect.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static UIRect.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
UIRect.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static UIRect.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
UIRect.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 java.nio.IntBuffer nv(long struct)
v().public static int nv(long struct,
int index)
v.public static int nx(long struct)
x().public static int ny(long struct)
y().public static int nw(long struct)
w().public static int nh(long struct)
h().public static void nv(long struct,
java.nio.IntBuffer value)
v.public static void nv(long struct,
int index,
int value)
v.public static void nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.public static void nw(long struct,
int value)
w.public static void nh(long struct,
int value)
h.Copyright LWJGL. All Rights Reserved. License terms.