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.StructLayout
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 classNkPropertyState.BufferAn array ofNkPropertyStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBUFFER
CURSOR
LENGTH
NAME
OLD
PREV
SELECT_END
SELECT_START
SEQThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTATEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkPropertyState(java.nio.ByteBuffer container)Creates aNkPropertyStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intactive()java.nio.ByteBufferbuffer()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 NkPropertyStatecreateSafe(long address)static NkPropertyState.BuffercreateSafe(long address, int capacity)intcursor()intlength()static intnactive(long struct)Unsafe version ofactive().intname()static java.nio.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()intselect_end()intselect_start()intseq()intsizeof()intstate()
-
-
-
Constructor Detail
-
NkPropertyState
public NkPropertyState(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
active
public int active()
- Returns:
- the value of the
activefield.
-
prev
public int prev()
- Returns:
- the value of the
prevfield.
-
buffer
public java.nio.ByteBuffer 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
public static NkPropertyState create(long address)
Returns a newNkPropertyStateinstance 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.Bufferinstance 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().
-
-