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()Returns the value of theactivefield.java.nio.ByteBufferbuffer()Returns aByteBufferview of thebufferfield.bytebuffer(int index)Returns the value at the specified index of thebufferfield.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()Returns the value of thecursorfield.intlength()Returns the value of thelengthfield.static intnactive(long struct)Unsafe version ofactive().intname()Returns the value of thenamefield.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()Returns the value of theoldfield.intprev()Returns the value of theprevfield.intselect_end()Returns the value of theselect_endfield.intselect_start()Returns the value of theselect_startfield.intseq()Returns the value of theseqfield.intsizeof()intstate()Returns the value of thestatefield.
-
-
-
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 theactivefield.
-
prev
public int prev()
Returns the value of theprevfield.
-
buffer
public java.nio.ByteBuffer buffer()
Returns aByteBufferview of thebufferfield.
-
buffer
public byte buffer(int index)
Returns the value at the specified index of thebufferfield.
-
length
public int length()
Returns the value of thelengthfield.
-
cursor
public int cursor()
Returns the value of thecursorfield.
-
select_start
public int select_start()
Returns the value of theselect_startfield.
-
select_end
public int select_end()
Returns the value of theselect_endfield.
-
name
public int name()
Returns the value of thenamefield.
-
seq
public int seq()
Returns the value of theseqfield.
-
old
public int old()
Returns the value of theoldfield.
-
state
public int state()
Returns the value of thestatefield.
-
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().
-
-