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.Struct
Layout
struct nk_draw_command { unsigned int elem_count;
struct nk_rect
clip_rect;nk_handle
texture;nk_handle
userdata; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkDrawCommand.Buffer
An array ofNkDrawCommand
structs.
-
Constructor Summary
Constructors Constructor Description NkDrawCommand(java.nio.ByteBuffer container)
Creates aNkDrawCommand
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkRect
clip_rect()
Returns aNkRect
view of theclip_rect
field.static NkDrawCommand
create(long address)
Returns a newNkDrawCommand
instance for the specified memory address.static NkDrawCommand.Buffer
create(long address, int capacity)
Create aNkDrawCommand.Buffer
instance at the specified memory.static NkDrawCommand
createSafe(long address)
static NkDrawCommand.Buffer
createSafe(long address, int capacity)
int
elem_count()
Returns the value of theelem_count
field.static NkRect
nclip_rect(long struct)
Unsafe version ofclip_rect()
.static int
nelem_count(long struct)
Unsafe version ofelem_count()
.static NkHandle
ntexture(long struct)
Unsafe version oftexture()
.static NkHandle
nuserdata(long struct)
Unsafe version ofuserdata()
.int
sizeof()
NkHandle
texture()
Returns aNkHandle
view of thetexture
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.
-
-
-
Constructor Detail
-
NkDrawCommand
public NkDrawCommand(java.nio.ByteBuffer container)
Creates aNkDrawCommand
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
-
elem_count
public int elem_count()
Returns the value of theelem_count
field.
-
create
public static NkDrawCommand create(long address)
Returns a newNkDrawCommand
instance 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.Buffer
instance 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()
.
-
-