Package org.lwjgl.nuklear
Class NkEditState
- All Implemented Interfaces:
Pointer
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;
{@link NkScroll struct nk_scroll} scrollbar;
unsigned char mode;
bool single_line;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkEditState(ByteBuffer container) Creates aNkEditStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintactive()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 @Nullable NkEditStatecreateSafe(long address) static @Nullable NkEditState.BuffercreateSafe(long address, int capacity) intcursor()bytemode()static intnactive(long struct) Unsafe version ofactive().intname()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()intprev()intsel_end()intintseq()booleanintsizeof()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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkEditState>
-
name
public int name()- Returns:
- the value of the
namefield.
-
seq
public int seq()- Returns:
- the value of the
seqfield.
-
old
public int old()- Returns:
- the value of the
oldfield.
-
active
public int active()- Returns:
- the value of the
activefield.
-
prev
public int prev()- Returns:
- the value of the
prevfield.
-
cursor
public int cursor()- Returns:
- the value of the
cursorfield.
-
sel_start
public int sel_start()- Returns:
- the value of the
sel_startfield.
-
sel_end
public int sel_end()- Returns:
- the value of the
sel_endfield.
-
scrollbar
- Returns:
- a
NkScrollview of thescrollbarfield.
-
mode
public byte mode()- Returns:
- the value of the
modefield.
-
single_line
public boolean single_line()- Returns:
- the value of the
single_linefield.
-
create
Returns a newNkEditStateinstance for the specified memory address. -
createSafe
-
create
Create aNkEditState.Bufferinstance 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().
-