Package org.lwjgl.nuklear
Class NkPropertyState
- All Implemented Interfaces:
Pointer
struct nk_property_state {
int active;
int prev;
char buffer[NK_MAX_NUMBER_BUFFER];
int length;
int cursor;
int select_start;
int select_end;
nk_hash name;
unsigned int seq;
unsigned int old;
int state;
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkPropertyState(ByteBuffer container) Creates aNkPropertyStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintactive()buffer()bytebuffer(int index) static NkPropertyStatecreate(long address) Returns a newNkPropertyStateinstance for the specified memory address.static NkPropertyState.Buffercreate(long address, int capacity) Create aNkPropertyState.Bufferinstance at the specified memory.static @Nullable NkPropertyStatecreateSafe(long address) static @Nullable NkPropertyState.BuffercreateSafe(long address, int capacity) intcursor()intlength()static intnactive(long struct) Unsafe version ofactive().intname()static ByteBuffernbuffer(long struct) Unsafe version ofbuffer().static bytenbuffer(long struct, int index) Unsafe version ofbuffer.static intncursor(long struct) Unsafe version ofcursor().static intnlength(long struct) Unsafe version oflength().static intnname(long struct) Unsafe version ofname().static intnold(long struct) Unsafe version ofold().static intnprev(long struct) Unsafe version ofprev().static intnselect_end(long struct) Unsafe version ofselect_end().static intnselect_start(long struct) Unsafe version ofselect_start().static intnseq(long struct) Unsafe version ofseq().static intnstate(long struct) Unsafe version ofstate().intold()intprev()intintintseq()intsizeof()Returnssizeof(struct).intstate()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. -
ACTIVE
public static final int ACTIVEThe struct member offsets. -
PREV
public static final int PREVThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
LENGTH
public static final int LENGTHThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets. -
SELECT_START
public static final int SELECT_STARTThe struct member offsets. -
SELECT_END
public static final int SELECT_ENDThe struct member offsets. -
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. -
STATE
public static final int STATEThe struct member offsets.
-
-
Constructor Details
-
NkPropertyState
Creates aNkPropertyStateinstance 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<NkPropertyState>
-
active
public int active()- Returns:
- the value of the
activefield.
-
prev
public int prev()- Returns:
- the value of the
prevfield.
-
buffer
- Returns:
- a
ByteBufferview of thebufferfield.
-
buffer
public byte buffer(int index) - Returns:
- the value at the specified index of the
bufferfield.
-
length
public int length()- Returns:
- the value of the
lengthfield.
-
cursor
public int cursor()- Returns:
- the value of the
cursorfield.
-
select_start
public int select_start()- Returns:
- the value of the
select_startfield.
-
select_end
public int select_end()- Returns:
- the value of the
select_endfield.
-
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.
-
state
public int state()- Returns:
- the value of the
statefield.
-
create
Returns a newNkPropertyStateinstance for the specified memory address. -
createSafe
-
create
Create aNkPropertyState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nactive
public static int nactive(long struct) Unsafe version ofactive(). -
nprev
public static int nprev(long struct) Unsafe version ofprev(). -
nbuffer
Unsafe version ofbuffer(). -
nbuffer
public static byte nbuffer(long struct, int index) Unsafe version ofbuffer. -
nlength
public static int nlength(long struct) Unsafe version oflength(). -
ncursor
public static int ncursor(long struct) Unsafe version ofcursor(). -
nselect_start
public static int nselect_start(long struct) Unsafe version ofselect_start(). -
nselect_end
public static int nselect_end(long struct) Unsafe version ofselect_end(). -
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(). -
nstate
public static int nstate(long struct) Unsafe version ofstate().
-