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.StructLayout
struct nk_command { enum nk_command_type type; nk_size next;nk_handleuserdata; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkCommand.BufferAn array ofNkCommandstructs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkCommandcreate(long address)Returns a newNkCommandinstance for the specified memory address.static NkCommand.Buffercreate(long address, int capacity)Create aNkCommand.Bufferinstance at the specified memory.static NkCommandcreateSafe(long address)static NkCommand.BuffercreateSafe(long address, int capacity)longnext()Returns the value of thenextfield.static longnnext(long struct)Unsafe version ofnext().static intntype(long struct)Unsafe version oftype().static NkHandlenuserdata(long struct)Unsafe version ofuserdata().intsizeof()inttype()Returns the value of thetypefield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkCommanduserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.
-
-
-
Constructor Detail
-
NkCommand
public NkCommand(java.nio.ByteBuffer container)
Creates aNkCommandinstance 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
-
type
public int type()
Returns the value of thetypefield.
-
next
public long next()
Returns the value of thenextfield.
-
userdata
public NkCommand userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
create
public static NkCommand create(long address)
Returns a newNkCommandinstance 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.Bufferinstance 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().
-
-