public class NkEditState
extends org.lwjgl.system.Struct
struct nk_edit_state {
nk_hash name;
unsigned int seq;
unsigned int old;
int active;
int prev;
int cursor;
int sel_start;
int sel_end;
struct nk_scroll scrollbar;
unsigned char mode;
bool single_line;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkEditState.Buffer
An array of
NkEditState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CURSOR
The struct member offsets.
|
static int |
MODE
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 |
SCROLLBAR
The struct member offsets.
|
static int |
SEL_END
The struct member offsets.
|
static int |
SEL_START
The struct member offsets.
|
static int |
SEQ
The struct member offsets.
|
static int |
SINGLE_LINE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkEditState(java.nio.ByteBuffer container)
Creates a
NkEditState 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. |
static NkEditState |
create(long address)
Returns a new
NkEditState instance for the specified memory address. |
static NkEditState.Buffer |
create(long address,
int capacity)
Create a
NkEditState.Buffer instance at the specified memory. |
static NkEditState |
createSafe(long address)
|
static NkEditState.Buffer |
createSafe(long address,
int capacity)
|
int |
cursor()
Returns the value of the
cursor field. |
byte |
mode()
Returns the value of the
mode field. |
static int |
nactive(long struct)
Unsafe version of
active(). |
int |
name()
Returns the value of the
name field. |
static int |
ncursor(long struct)
Unsafe version of
cursor(). |
static byte |
nmode(long struct)
Unsafe version of
mode(). |
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 NkScroll |
nscrollbar(long struct)
Unsafe version of
scrollbar(). |
static int |
nsel_end(long struct)
Unsafe version of
sel_end(). |
static int |
nsel_start(long struct)
Unsafe version of
sel_start(). |
static int |
nseq(long struct)
Unsafe version of
seq(). |
static boolean |
nsingle_line(long struct)
Unsafe version of
single_line(). |
int |
old()
Returns the value of the
old field. |
int |
prev()
Returns the value of the
prev field. |
NkScroll |
scrollbar()
Returns a
NkScroll view of the scrollbar field. |
int |
sel_end()
Returns the value of the
sel_end field. |
int |
sel_start()
Returns the value of the
sel_start field. |
int |
seq()
Returns the value of the
seq field. |
boolean |
single_line()
Returns the value of the
single_line field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int SEQ
public static final int OLD
public static final int ACTIVE
public static final int PREV
public static final int CURSOR
public static final int SEL_START
public static final int SEL_END
public static final int SCROLLBAR
public static final int MODE
public static final int SINGLE_LINE
public NkEditState(java.nio.ByteBuffer container)
NkEditState 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 name()
name field.public int seq()
seq field.public int old()
old field.public int active()
active field.public int prev()
prev field.public int cursor()
cursor field.public int sel_start()
sel_start field.public int sel_end()
sel_end field.public byte mode()
mode field.public boolean single_line()
single_line field.public static NkEditState create(long address)
NkEditState instance for the specified memory address.@Nullable public static NkEditState createSafe(long address)
public static NkEditState.Buffer create(long address, int capacity)
NkEditState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkEditState.Buffer createSafe(long address, int capacity)
public static int nname(long struct)
name().public static int nseq(long struct)
seq().public static int nold(long struct)
old().public static int nactive(long struct)
active().public static int nprev(long struct)
prev().public static int ncursor(long struct)
cursor().public static int nsel_start(long struct)
sel_start().public static int nsel_end(long struct)
sel_end().public static NkScroll nscrollbar(long struct)
scrollbar().public static byte nmode(long struct)
mode().public static boolean nsingle_line(long struct)
single_line().Copyright LWJGL. All Rights Reserved. License terms.