Package org.lwjgl.nuklear
Class NkPropertyState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkPropertyState
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkPropertyState extends org.lwjgl.system.Struct
Layout
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 Classes Modifier and Type Class Description static class
NkPropertyState.Buffer
An array ofNkPropertyState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
BUFFER
CURSOR
LENGTH
NAME
OLD
PREV
SELECT_END
SELECT_START
SEQThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STATE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkPropertyState(java.nio.ByteBuffer container)
Creates aNkPropertyState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
active()
Returns the value of theactive
field.java.nio.ByteBuffer
buffer()
Returns aByteBuffer
view of thebuffer
field.byte
buffer(int index)
Returns the value at the specified index of thebuffer
field.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 NkPropertyState
createSafe(long address)
static NkPropertyState.Buffer
createSafe(long address, int capacity)
int
cursor()
Returns the value of thecursor
field.int
length()
Returns the value of thelength
field.static int
nactive(long struct)
Unsafe version ofactive()
.int
name()
Returns the value of thename
field.static java.nio.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()
Returns the value of theold
field.int
prev()
Returns the value of theprev
field.int
select_end()
Returns the value of theselect_end
field.int
select_start()
Returns the value of theselect_start
field.int
seq()
Returns the value of theseq
field.int
sizeof()
int
state()
Returns the value of thestate
field.
-
-
-
Constructor Detail
-
NkPropertyState
public NkPropertyState(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
active
public int active()
Returns the value of theactive
field.
-
prev
public int prev()
Returns the value of theprev
field.
-
buffer
public java.nio.ByteBuffer buffer()
Returns aByteBuffer
view of thebuffer
field.
-
buffer
public byte buffer(int index)
Returns the value at the specified index of thebuffer
field.
-
length
public int length()
Returns the value of thelength
field.
-
cursor
public int cursor()
Returns the value of thecursor
field.
-
select_start
public int select_start()
Returns the value of theselect_start
field.
-
select_end
public int select_end()
Returns the value of theselect_end
field.
-
name
public int name()
Returns the value of thename
field.
-
seq
public int seq()
Returns the value of theseq
field.
-
old
public int old()
Returns the value of theold
field.
-
state
public int state()
Returns the value of thestate
field.
-
create
public static NkPropertyState create(long address)
Returns a newNkPropertyState
instance for the specified memory address.
-
createSafe
@Nullable public static NkPropertyState createSafe(long address)
-
create
public static NkPropertyState.Buffer create(long address, int capacity)
Create aNkPropertyState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkPropertyState.Buffer createSafe(long address, int capacity)
-
nactive
public static int nactive(long struct)
Unsafe version ofactive()
.
-
nprev
public static int nprev(long struct)
Unsafe version ofprev()
.
-
nbuffer
public static java.nio.ByteBuffer nbuffer(long struct)
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()
.
-
-