public class NkPropertyState
extends org.lwjgl.system.Struct
struct nk_property_state {
int active;
int prev;
char buffer[NK_MAX_NUMBER_BUFFER];
int length;
int cursor;
int select_start;
int select_end;
nk_hash name;
unsigned int seq;
unsigned int old;
int state;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkPropertyState.Buffer
An array of
NkPropertyState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
The struct member offsets.
|
static int |
CURSOR
The struct member offsets.
|
static int |
LENGTH
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
OLD
The struct member offsets.
|
static int |
PREV
The struct member offsets.
|
static int |
SELECT_END
The struct member offsets.
|
static int |
SELECT_START
The struct member offsets.
|
static int |
SEQ
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STATE
The struct member offsets.
|
| Constructor and Description |
|---|
NkPropertyState(java.nio.ByteBuffer container)
Creates a
NkPropertyState instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
active()
Returns the value of the
active field. |
java.nio.ByteBuffer |
buffer()
Returns a
ByteBuffer view of the buffer field. |
byte |
buffer(int index)
Returns the value at the specified index of the
buffer field. |
static NkPropertyState |
create(long address)
Returns a new
NkPropertyState instance for the specified memory address. |
static NkPropertyState.Buffer |
create(long address,
int capacity)
Create a
NkPropertyState.Buffer instance at the specified memory. |
static NkPropertyState |
createSafe(long address)
|
static NkPropertyState.Buffer |
createSafe(long address,
int capacity)
|
int |
cursor()
Returns the value of the
cursor field. |
int |
length()
Returns the value of the
length field. |
static int |
nactive(long struct)
Unsafe version of
active(). |
int |
name()
Returns the value of the
name field. |
static java.nio.ByteBuffer |
nbuffer(long struct)
Unsafe version of
buffer(). |
static byte |
nbuffer(long struct,
int index)
Unsafe version of
buffer. |
static int |
ncursor(long struct)
Unsafe version of
cursor(). |
static int |
nlength(long struct)
Unsafe version of
length(). |
static int |
nname(long struct)
Unsafe version of
name(). |
static int |
nold(long struct)
Unsafe version of
old(). |
static int |
nprev(long struct)
Unsafe version of
prev(). |
static int |
nselect_end(long struct)
Unsafe version of
select_end(). |
static int |
nselect_start(long struct)
Unsafe version of
select_start(). |
static int |
nseq(long struct)
Unsafe version of
seq(). |
static int |
nstate(long struct)
Unsafe version of
state(). |
int |
old()
Returns the value of the
old field. |
int |
prev()
Returns the value of the
prev field. |
int |
select_end()
Returns the value of the
select_end field. |
int |
select_start()
Returns the value of the
select_start field. |
int |
seq()
Returns the value of the
seq field. |
int |
sizeof() |
int |
state()
Returns the value of the
state field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ACTIVE
public static final int PREV
public static final int BUFFER
public static final int LENGTH
public static final int CURSOR
public static final int SELECT_START
public static final int SELECT_END
public static final int NAME
public static final int SEQ
public static final int OLD
public static final int STATE
public NkPropertyState(java.nio.ByteBuffer container)
NkPropertyState 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 active()
active field.public int prev()
prev field.public java.nio.ByteBuffer buffer()
ByteBuffer view of the buffer field.public byte buffer(int index)
buffer field.public int length()
length field.public int cursor()
cursor field.public int select_start()
select_start field.public int select_end()
select_end field.public int name()
name field.public int seq()
seq field.public int old()
old field.public int state()
state field.public static NkPropertyState create(long address)
NkPropertyState instance for the specified memory address.@Nullable public static NkPropertyState createSafe(long address)
public static NkPropertyState.Buffer create(long address, int capacity)
NkPropertyState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkPropertyState.Buffer createSafe(long address, int capacity)
public static int nactive(long struct)
active().public static int nprev(long struct)
prev().public static java.nio.ByteBuffer nbuffer(long struct)
buffer().public static byte nbuffer(long struct,
int index)
buffer.public static int nlength(long struct)
length().public static int ncursor(long struct)
cursor().public static int nselect_start(long struct)
select_start().public static int nselect_end(long struct)
select_end().public static int nname(long struct)
name().public static int nseq(long struct)
seq().public static int nold(long struct)
old().public static int nstate(long struct)
state().Copyright LWJGL. All Rights Reserved. License terms.