Package org.lwjgl.nuklear
Class NkDrawCommand
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkDrawCommand
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkDrawCommand extends org.lwjgl.system.StructLayout
struct nk_draw_command { unsigned int elem_count;struct nk_rectclip_rect;nk_handletexture;nk_handleuserdata; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkDrawCommand.BufferAn array ofNkDrawCommandstructs.
-
Constructor Summary
Constructors Constructor Description NkDrawCommand(java.nio.ByteBuffer container)Creates aNkDrawCommandinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkRectclip_rect()Returns aNkRectview of theclip_rectfield.NkDrawCommandclip_rect(java.util.function.Consumer<NkRect> consumer)Passes theclip_rectfield to the specifiedConsumer.static NkDrawCommandcreate(long address)Returns a newNkDrawCommandinstance for the specified memory address.static NkDrawCommand.Buffercreate(long address, int capacity)Create aNkDrawCommand.Bufferinstance at the specified memory.static NkDrawCommandcreateSafe(long address)static NkDrawCommand.BuffercreateSafe(long address, int capacity)intelem_count()Returns the value of theelem_countfield.static NkRectnclip_rect(long struct)Unsafe version ofclip_rect().static intnelem_count(long struct)Unsafe version ofelem_count().static NkHandlentexture(long struct)Unsafe version oftexture().static NkHandlenuserdata(long struct)Unsafe version ofuserdata().intsizeof()NkHandletexture()Returns aNkHandleview of thetexturefield.NkDrawCommandtexture(java.util.function.Consumer<NkHandle> consumer)Passes thetexturefield to the specifiedConsumer.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkDrawCommanduserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.
-
-
-
Constructor Detail
-
NkDrawCommand
public NkDrawCommand(java.nio.ByteBuffer container)
Creates aNkDrawCommandinstance 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
-
elem_count
public int elem_count()
Returns the value of theelem_countfield.
-
clip_rect
public NkDrawCommand clip_rect(java.util.function.Consumer<NkRect> consumer)
Passes theclip_rectfield to the specifiedConsumer.
-
texture
public NkDrawCommand texture(java.util.function.Consumer<NkHandle> consumer)
Passes thetexturefield to the specifiedConsumer.
-
userdata
public NkDrawCommand userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
create
public static NkDrawCommand create(long address)
Returns a newNkDrawCommandinstance for the specified memory address.
-
createSafe
@Nullable public static NkDrawCommand createSafe(long address)
-
create
public static NkDrawCommand.Buffer create(long address, int capacity)
Create aNkDrawCommand.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkDrawCommand.Buffer createSafe(long address, int capacity)
-
nelem_count
public static int nelem_count(long struct)
Unsafe version ofelem_count().
-
nclip_rect
public static NkRect nclip_rect(long struct)
Unsafe version ofclip_rect().
-
nuserdata
public static NkHandle nuserdata(long struct)
Unsafe version ofuserdata().
-
-