Package org.lwjgl.nuklear
Class NkCommand
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkCommand
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkCommand extends org.lwjgl.system.Struct
Layout
struct nk_command { enum nk_command_type type; nk_size next;
nk_handle
userdata; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkCommand.Buffer
An array ofNkCommand
structs.
-
Constructor Summary
Constructors Constructor Description NkCommand(java.nio.ByteBuffer container)
Creates aNkCommand
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkCommand
create(long address)
Returns a newNkCommand
instance for the specified memory address.static NkCommand.Buffer
create(long address, int capacity)
Create aNkCommand.Buffer
instance at the specified memory.static NkCommand
createSafe(long address)
static NkCommand.Buffer
createSafe(long address, int capacity)
long
next()
Returns the value of thenext
field.static long
nnext(long struct)
Unsafe version ofnext()
.static int
ntype(long struct)
Unsafe version oftype()
.static NkHandle
nuserdata(long struct)
Unsafe version ofuserdata()
.int
sizeof()
int
type()
Returns the value of thetype
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.
-
-
-
Constructor Detail
-
NkCommand
public NkCommand(java.nio.ByteBuffer container)
Creates aNkCommand
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
-
type
public int type()
Returns the value of thetype
field.
-
next
public long next()
Returns the value of thenext
field.
-
create
public static NkCommand create(long address)
Returns a newNkCommand
instance for the specified memory address.
-
createSafe
@Nullable public static NkCommand createSafe(long address)
-
create
public static NkCommand.Buffer create(long address, int capacity)
Create aNkCommand.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkCommand.Buffer createSafe(long address, int capacity)
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
nnext
public static long nnext(long struct)
Unsafe version ofnext()
.
-
nuserdata
public static NkHandle nuserdata(long struct)
Unsafe version ofuserdata()
.
-
-