public class NkMenuState
extends org.lwjgl.system.Struct
struct nk_menu_state {
float x;
float y;
float w;
float h;
struct nk_scroll offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkMenuState.Buffer
An array of
NkMenuState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
H
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
W
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
NkMenuState(java.nio.ByteBuffer container)
Creates a
NkMenuState instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkMenuState |
create(long address)
Returns a new
NkMenuState instance for the specified memory address. |
static NkMenuState.Buffer |
create(long address,
int capacity)
Create a
NkMenuState.Buffer instance at the specified memory. |
static NkMenuState |
createSafe(long address)
|
static NkMenuState.Buffer |
createSafe(long address,
int capacity)
|
float |
h()
Returns the value of the
h field. |
static float |
nh(long struct)
Unsafe version of
h(). |
static NkScroll |
noffset(long struct)
Unsafe version of
offset(). |
static float |
nw(long struct)
Unsafe version of
w(). |
static float |
nx(long struct)
Unsafe version of
x(). |
static float |
ny(long struct)
Unsafe version of
y(). |
NkScroll |
offset()
Returns a
NkScroll view of the offset field. |
int |
sizeof() |
float |
w()
Returns the value of the
w field. |
float |
x()
Returns the value of the
x field. |
float |
y()
Returns the value of 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 W
public static final int H
public static final int OFFSET
public NkMenuState(java.nio.ByteBuffer container)
NkMenuState 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 float x()
x field.public float y()
y field.public float w()
w field.public float h()
h field.public static NkMenuState create(long address)
NkMenuState instance for the specified memory address.@Nullable public static NkMenuState createSafe(long address)
public static NkMenuState.Buffer create(long address, int capacity)
NkMenuState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkMenuState.Buffer createSafe(long address, int capacity)
public static float nx(long struct)
x().public static float ny(long struct)
y().public static float nw(long struct)
w().public static float nh(long struct)
h().Copyright LWJGL. All Rights Reserved. License terms.