Package org.lwjgl.nuklear
Class NkEditState
- All Implemented Interfaces:
Pointer
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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkEditState
(ByteBuffer container) Creates aNkEditState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
active()
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()
byte
mode()
static int
nactive
(long struct) Unsafe version ofactive()
.int
name()
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()
int
prev()
int
sel_end()
int
int
seq()
boolean
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NAME
public static final int NAMEThe struct member offsets. -
SEQ
public static final int SEQThe struct member offsets. -
OLD
public static final int OLDThe struct member offsets. -
ACTIVE
public static final int ACTIVEThe struct member offsets. -
PREV
public static final int PREVThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets. -
SEL_START
public static final int SEL_STARTThe struct member offsets. -
SEL_END
public static final int SEL_ENDThe struct member offsets. -
SCROLLBAR
public static final int SCROLLBARThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
SINGLE_LINE
public static final int SINGLE_LINEThe struct member offsets.
-
-
Constructor Details
-
NkEditState
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkEditState>
-
name
public int name()- Returns:
- the value of the
name
field.
-
seq
public int seq()- Returns:
- the value of the
seq
field.
-
old
public int old()- Returns:
- the value of the
old
field.
-
active
public int active()- Returns:
- the value of the
active
field.
-
prev
public int prev()- Returns:
- the value of the
prev
field.
-
cursor
public int cursor()- Returns:
- the value of the
cursor
field.
-
sel_start
public int sel_start()- Returns:
- the value of the
sel_start
field.
-
sel_end
public int sel_end()- Returns:
- the value of the
sel_end
field.
-
scrollbar
- Returns:
- a
NkScroll
view of thescrollbar
field.
-
mode
public byte mode()- Returns:
- the value of the
mode
field.
-
single_line
public boolean single_line()- Returns:
- the value of the
single_line
field.
-
create
Returns a newNkEditState
instance for the specified memory address. -
createSafe
-
create
Create aNkEditState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
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
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()
.
-