public class NkDrawCommand
extends org.lwjgl.system.Struct
struct nk_draw_command {
unsigned int elem_count;
struct nk_rect clip_rect;
nk_handle texture;
nk_handle userdata;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkDrawCommand.Buffer
An array of
NkDrawCommand structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLIP_RECT
The struct member offsets.
|
static int |
ELEM_COUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTURE
The struct member offsets.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
NkDrawCommand(java.nio.ByteBuffer container)
Creates a
NkDrawCommand instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkRect |
clip_rect()
Returns a
NkRect view of the clip_rect field. |
static NkDrawCommand |
create(long address)
Returns a new
NkDrawCommand instance for the specified memory address. |
static NkDrawCommand.Buffer |
create(long address,
int capacity)
Create a
NkDrawCommand.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 the
elem_count field. |
static NkRect |
nclip_rect(long struct)
Unsafe version of
clip_rect(). |
static int |
nelem_count(long struct)
Unsafe version of
elem_count(). |
static NkHandle |
ntexture(long struct)
Unsafe version of
texture(). |
static NkHandle |
nuserdata(long struct)
Unsafe version of
userdata(). |
int |
sizeof() |
NkHandle |
texture()
Returns a
NkHandle view of the texture field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ELEM_COUNT
public static final int CLIP_RECT
public static final int TEXTURE
public static final int USERDATA
public NkDrawCommand(java.nio.ByteBuffer container)
NkDrawCommand instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int elem_count()
elem_count field.public static NkDrawCommand create(long address)
NkDrawCommand instance for the specified memory address.@Nullable public static NkDrawCommand createSafe(long address)
public static NkDrawCommand.Buffer create(long address, int capacity)
NkDrawCommand.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkDrawCommand.Buffer createSafe(long address, int capacity)
public static int nelem_count(long struct)
elem_count().public static NkRect nclip_rect(long struct)
clip_rect().public static NkHandle nuserdata(long struct)
userdata().Copyright LWJGL. All Rights Reserved. License terms.