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.StructLayout
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_scrollscrollbar; unsigned char mode; bool single_line; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkEditState.BufferAn array ofNkEditStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intCURSOR
MODE
NAME
OLD
PREV
SCROLLBAR
SEL_END
SEL_START
SEQ
SINGLE_LINEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NkEditState(java.nio.ByteBuffer container)Creates aNkEditStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intactive()Returns the value of theactivefield.static NkEditStatecreate(long address)Returns a newNkEditStateinstance for the specified memory address.static NkEditState.Buffercreate(long address, int capacity)Create aNkEditState.Bufferinstance at the specified memory.static NkEditStatecreateSafe(long address)static NkEditState.BuffercreateSafe(long address, int capacity)intcursor()Returns the value of thecursorfield.bytemode()Returns the value of themodefield.static intnactive(long struct)Unsafe version ofactive().intname()Returns the value of thenamefield.static intncursor(long struct)Unsafe version ofcursor().static bytenmode(long struct)Unsafe version ofmode().static intnname(long struct)Unsafe version ofname().static intnold(long struct)Unsafe version ofold().static intnprev(long struct)Unsafe version ofprev().static NkScrollnscrollbar(long struct)Unsafe version ofscrollbar().static intnsel_end(long struct)Unsafe version ofsel_end().static intnsel_start(long struct)Unsafe version ofsel_start().static intnseq(long struct)Unsafe version ofseq().static booleannsingle_line(long struct)Unsafe version ofsingle_line().intold()Returns the value of theoldfield.intprev()Returns the value of theprevfield.NkScrollscrollbar()Returns aNkScrollview of thescrollbarfield.intsel_end()Returns the value of thesel_endfield.intsel_start()Returns the value of thesel_startfield.intseq()Returns the value of theseqfield.booleansingle_line()Returns the value of thesingle_linefield.intsizeof()
-
-
-
Constructor Detail
-
NkEditState
public NkEditState(java.nio.ByteBuffer container)
Creates aNkEditStateinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
name
public int name()
Returns the value of thenamefield.
-
seq
public int seq()
Returns the value of theseqfield.
-
old
public int old()
Returns the value of theoldfield.
-
active
public int active()
Returns the value of theactivefield.
-
prev
public int prev()
Returns the value of theprevfield.
-
cursor
public int cursor()
Returns the value of thecursorfield.
-
sel_start
public int sel_start()
Returns the value of thesel_startfield.
-
sel_end
public int sel_end()
Returns the value of thesel_endfield.
-
mode
public byte mode()
Returns the value of themodefield.
-
single_line
public boolean single_line()
Returns the value of thesingle_linefield.
-
create
public static NkEditState create(long address)
Returns a newNkEditStateinstance 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.Bufferinstance 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().
-
-