Package org.lwjgl.nuklear
Class NkEditState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkEditState
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkEditState extends org.lwjgl.system.Struct
Layout
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkEditState.Buffer
An array ofNkEditState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
CURSOR
MODE
NAME
OLD
PREV
SCROLLBAR
SEL_END
SEL_START
SEQ
SINGLE_LINEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NkEditState(java.nio.ByteBuffer container)
Creates aNkEditState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
active()
Returns the value of theactive
field.static NkEditState
create(long address)
Returns a newNkEditState
instance for the specified memory address.static NkEditState.Buffer
create(long address, int capacity)
Create aNkEditState.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 thecursor
field.byte
mode()
Returns the value of themode
field.static int
nactive(long struct)
Unsafe version ofactive()
.int
name()
Returns the value of thename
field.static int
ncursor(long struct)
Unsafe version ofcursor()
.static byte
nmode(long struct)
Unsafe version ofmode()
.static int
nname(long struct)
Unsafe version ofname()
.static int
nold(long struct)
Unsafe version ofold()
.static int
nprev(long struct)
Unsafe version ofprev()
.static NkScroll
nscrollbar(long struct)
Unsafe version ofscrollbar()
.static int
nsel_end(long struct)
Unsafe version ofsel_end()
.static int
nsel_start(long struct)
Unsafe version ofsel_start()
.static int
nseq(long struct)
Unsafe version ofseq()
.static boolean
nsingle_line(long struct)
Unsafe version ofsingle_line()
.int
old()
Returns the value of theold
field.int
prev()
Returns the value of theprev
field.NkScroll
scrollbar()
Returns aNkScroll
view of thescrollbar
field.int
sel_end()
Returns the value of thesel_end
field.int
sel_start()
Returns the value of thesel_start
field.int
seq()
Returns the value of theseq
field.boolean
single_line()
Returns the value of thesingle_line
field.int
sizeof()
-
-
-
Constructor Detail
-
NkEditState
public NkEditState(java.nio.ByteBuffer container)
Creates aNkEditState
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
name
public int name()
Returns the value of thename
field.
-
seq
public int seq()
Returns the value of theseq
field.
-
old
public int old()
Returns the value of theold
field.
-
active
public int active()
Returns the value of theactive
field.
-
prev
public int prev()
Returns the value of theprev
field.
-
cursor
public int cursor()
Returns the value of thecursor
field.
-
sel_start
public int sel_start()
Returns the value of thesel_start
field.
-
sel_end
public int sel_end()
Returns the value of thesel_end
field.
-
mode
public byte mode()
Returns the value of themode
field.
-
single_line
public boolean single_line()
Returns the value of thesingle_line
field.
-
create
public static NkEditState create(long address)
Returns a newNkEditState
instance for the specified memory address.
-
createSafe
@Nullable public static NkEditState createSafe(long address)
-
create
public static NkEditState.Buffer create(long address, int capacity)
Create aNkEditState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkEditState.Buffer createSafe(long address, int capacity)
-
nname
public static int nname(long struct)
Unsafe version ofname()
.
-
nseq
public static int nseq(long struct)
Unsafe version ofseq()
.
-
nold
public static int nold(long struct)
Unsafe version ofold()
.
-
nactive
public static int nactive(long struct)
Unsafe version ofactive()
.
-
nprev
public static int nprev(long struct)
Unsafe version ofprev()
.
-
ncursor
public static int ncursor(long struct)
Unsafe version ofcursor()
.
-
nsel_start
public static int nsel_start(long struct)
Unsafe version ofsel_start()
.
-
nsel_end
public static int nsel_end(long struct)
Unsafe version ofsel_end()
.
-
nscrollbar
public static NkScroll nscrollbar(long struct)
Unsafe version ofscrollbar()
.
-
nmode
public static byte nmode(long struct)
Unsafe version ofmode()
.
-
nsingle_line
public static boolean nsingle_line(long struct)
Unsafe version ofsingle_line()
.
-
-