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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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 size in bytes.static final int
The 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 aNkPropertyState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
active()
buffer()
byte
buffer
(int index) static NkPropertyState
create
(long address) Returns a newNkPropertyState
instance for the specified memory address.static NkPropertyState.Buffer
create
(long address, int capacity) Create aNkPropertyState.Buffer
instance at the specified memory.static @Nullable NkPropertyState
createSafe
(long address) static @Nullable NkPropertyState.Buffer
createSafe
(long address, int capacity) int
cursor()
int
length()
static int
nactive
(long struct) Unsafe version ofactive()
.int
name()
static ByteBuffer
nbuffer
(long struct) Unsafe version ofbuffer()
.static byte
nbuffer
(long struct, int index) Unsafe version ofbuffer
.static int
ncursor
(long struct) Unsafe version ofcursor()
.static int
nlength
(long struct) Unsafe version oflength()
.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 int
nselect_end
(long struct) Unsafe version ofselect_end()
.static int
nselect_start
(long struct) Unsafe version ofselect_start()
.static int
nseq
(long struct) Unsafe version ofseq()
.static int
nstate
(long struct) Unsafe version ofstate()
.int
old()
int
prev()
int
int
int
seq()
int
sizeof()
Returnssizeof(struct)
.int
state()
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 aNkPropertyState
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<NkPropertyState>
-
active
public int active()- Returns:
- the value of the
active
field.
-
prev
public int prev()- Returns:
- the value of the
prev
field.
-
buffer
- Returns:
- a
ByteBuffer
view of thebuffer
field.
-
buffer
public byte buffer(int index) - Returns:
- the value at the specified index of the
buffer
field.
-
length
public int length()- Returns:
- the value of the
length
field.
-
cursor
public int cursor()- Returns:
- the value of the
cursor
field.
-
select_start
public int select_start()- Returns:
- the value of the
select_start
field.
-
select_end
public int select_end()- Returns:
- the value of the
select_end
field.
-
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.
-
state
public int state()- Returns:
- the value of the
state
field.
-
create
Returns a newNkPropertyState
instance for the specified memory address. -
createSafe
-
create
Create aNkPropertyState.Buffer
instance 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()
.
-