public class NkDrawList
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_draw_list {
struct nk_rect clip_rect;
struct nk_vec2 circle_vtx[12];
struct nk_convert_config config;
struct nk_buffer * buffer;
struct nk_buffer * vertices;
struct nk_buffer * elements;
unsigned int element_count;
unsigned int vertex_count;
unsigned int cmd_count;
nk_size cmd_offset;
unsigned int path_count;
unsigned int path_offset;
enum nk_anti_aliasing line_AA;
enum nk_anti_aliasing shape_AA;
nk_handle userdata;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkDrawList.Buffer
An array of
NkDrawList structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
The struct member offsets.
|
static int |
CIRCLE_VTX
The struct member offsets.
|
static int |
CLIP_RECT
The struct member offsets.
|
static int |
CMD_COUNT
The struct member offsets.
|
static int |
CMD_OFFSET
The struct member offsets.
|
static int |
CONFIG
The struct member offsets.
|
static int |
ELEMENT_COUNT
The struct member offsets.
|
static int |
ELEMENTS
The struct member offsets.
|
static int |
LINE_AA
The struct member offsets.
|
static int |
PATH_COUNT
The struct member offsets.
|
static int |
PATH_OFFSET
The struct member offsets.
|
static int |
SHAPE_AA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USERDATA
The struct member offsets.
|
static int |
VERTEX_COUNT
The struct member offsets.
|
static int |
VERTICES
The struct member offsets.
|
| Constructor and Description |
|---|
NkDrawList(java.nio.ByteBuffer container)
Creates a
NkDrawList instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkBuffer |
buffer()
Returns a
NkBuffer view of the struct pointed to by the buffer field. |
static NkDrawList |
calloc()
Returns a new
NkDrawList instance allocated with memCalloc. |
static NkDrawList.Buffer |
calloc(int capacity)
Returns a new
NkDrawList.Buffer instance allocated with memCalloc. |
static NkDrawList |
callocStack()
Returns a new
NkDrawList instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkDrawList.Buffer |
callocStack(int capacity)
Returns a new
NkDrawList.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkDrawList.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawList.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkDrawList |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawList instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkVec2.Buffer |
circle_vtx()
Returns a
NkVec2.Buffer view of the circle_vtx field. |
NkVec2 |
circle_vtx(int index)
Returns a
NkVec2 view of the struct at the specified index of the circle_vtx field. |
NkRect |
clip_rect()
Returns a
NkRect view of the clip_rect field. |
int |
cmd_count()
Returns the value of the
cmd_count field. |
long |
cmd_offset()
Returns the value of the
cmd_offset field. |
NkConvertConfig |
config()
Returns a
NkConvertConfig view of the config field. |
static NkDrawList |
create()
Returns a new
NkDrawList instance allocated with BufferUtils. |
static NkDrawList.Buffer |
create(int capacity)
Returns a new
NkDrawList.Buffer instance allocated with BufferUtils. |
static NkDrawList |
create(long address)
Returns a new
NkDrawList instance for the specified memory address. |
static NkDrawList.Buffer |
create(long address,
int capacity)
Create a
NkDrawList.Buffer instance at the specified memory. |
static NkDrawList |
createSafe(long address)
|
static NkDrawList.Buffer |
createSafe(long address,
int capacity)
|
int |
element_count()
Returns the value of the
element_count field. |
NkBuffer |
elements()
Returns a
NkBuffer view of the struct pointed to by the elements field. |
int |
line_AA()
Returns the value of the
line_AA field. |
static NkDrawList |
malloc()
Returns a new
NkDrawList instance allocated with memAlloc. |
static NkDrawList.Buffer |
malloc(int capacity)
Returns a new
NkDrawList.Buffer instance allocated with memAlloc. |
static NkDrawList |
mallocStack()
Returns a new
NkDrawList instance allocated on the thread-local MemoryStack. |
static NkDrawList.Buffer |
mallocStack(int capacity)
Returns a new
NkDrawList.Buffer instance allocated on the thread-local MemoryStack. |
static NkDrawList.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawList.Buffer instance allocated on the specified MemoryStack. |
static NkDrawList |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawList instance allocated on the specified MemoryStack. |
static NkBuffer |
nbuffer(long struct)
Unsafe version of
buffer(). |
static NkVec2.Buffer |
ncircle_vtx(long struct)
Unsafe version of
circle_vtx(). |
static NkVec2 |
ncircle_vtx(long struct,
int index)
Unsafe version of
circle_vtx. |
static NkRect |
nclip_rect(long struct)
Unsafe version of
clip_rect(). |
static int |
ncmd_count(long struct)
Unsafe version of
cmd_count(). |
static long |
ncmd_offset(long struct)
Unsafe version of
cmd_offset(). |
static NkConvertConfig |
nconfig(long struct)
Unsafe version of
config(). |
static int |
nelement_count(long struct)
Unsafe version of
element_count(). |
static NkBuffer |
nelements(long struct)
Unsafe version of
elements(). |
static int |
nline_AA(long struct)
Unsafe version of
line_AA(). |
static int |
npath_count(long struct)
Unsafe version of
path_count(). |
static int |
npath_offset(long struct)
Unsafe version of
path_offset(). |
static int |
nshape_AA(long struct)
Unsafe version of
shape_AA(). |
static NkHandle |
nuserdata(long struct)
Unsafe version of
userdata(). |
static int |
nvertex_count(long struct)
Unsafe version of
vertex_count(). |
static NkBuffer |
nvertices(long struct)
Unsafe version of
vertices(). |
int |
path_count()
Returns the value of the
path_count field. |
int |
path_offset()
Returns the value of the
path_offset field. |
int |
shape_AA()
Returns the value of the
shape_AA field. |
int |
sizeof() |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
int |
vertex_count()
Returns the value of the
vertex_count field. |
NkBuffer |
vertices()
Returns a
NkBuffer view of the struct pointed to by the vertices field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CLIP_RECT
public static final int CIRCLE_VTX
public static final int CONFIG
public static final int BUFFER
public static final int VERTICES
public static final int ELEMENTS
public static final int ELEMENT_COUNT
public static final int VERTEX_COUNT
public static final int CMD_COUNT
public static final int CMD_OFFSET
public static final int PATH_COUNT
public static final int PATH_OFFSET
public static final int LINE_AA
public static final int SHAPE_AA
public static final int USERDATA
public NkDrawList(java.nio.ByteBuffer container)
NkDrawList 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 NkVec2.Buffer circle_vtx()
NkVec2.Buffer view of the circle_vtx field.public NkVec2 circle_vtx(int index)
NkVec2 view of the struct at the specified index of the circle_vtx field.public NkConvertConfig config()
NkConvertConfig view of the config field.@Nullable public NkBuffer buffer()
NkBuffer view of the struct pointed to by the buffer field.@Nullable public NkBuffer vertices()
NkBuffer view of the struct pointed to by the vertices field.@Nullable public NkBuffer elements()
NkBuffer view of the struct pointed to by the elements field.public int element_count()
element_count field.public int vertex_count()
vertex_count field.public int cmd_count()
cmd_count field.public long cmd_offset()
cmd_offset field.public int path_count()
path_count field.public int path_offset()
path_offset field.public int line_AA()
line_AA field.public int shape_AA()
shape_AA field.public static NkDrawList malloc()
NkDrawList instance allocated with memAlloc. The instance must be explicitly freed.public static NkDrawList calloc()
NkDrawList instance allocated with memCalloc. The instance must be explicitly freed.public static NkDrawList create()
NkDrawList instance allocated with BufferUtils.public static NkDrawList create(long address)
NkDrawList instance for the specified memory address.@Nullable public static NkDrawList createSafe(long address)
public static NkDrawList.Buffer malloc(int capacity)
NkDrawList.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkDrawList.Buffer calloc(int capacity)
NkDrawList.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkDrawList.Buffer create(int capacity)
NkDrawList.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkDrawList.Buffer create(long address, int capacity)
NkDrawList.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkDrawList.Buffer createSafe(long address, int capacity)
public static NkDrawList mallocStack()
NkDrawList instance allocated on the thread-local MemoryStack.public static NkDrawList callocStack()
NkDrawList instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkDrawList mallocStack(org.lwjgl.system.MemoryStack stack)
NkDrawList instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkDrawList callocStack(org.lwjgl.system.MemoryStack stack)
NkDrawList instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkDrawList.Buffer mallocStack(int capacity)
NkDrawList.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkDrawList.Buffer callocStack(int capacity)
NkDrawList.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkDrawList.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkDrawList.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkDrawList.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkDrawList.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkRect nclip_rect(long struct)
clip_rect().public static NkVec2.Buffer ncircle_vtx(long struct)
circle_vtx().public static NkVec2 ncircle_vtx(long struct, int index)
circle_vtx.public static NkConvertConfig nconfig(long struct)
config().@Nullable public static NkBuffer nvertices(long struct)
vertices().@Nullable public static NkBuffer nelements(long struct)
elements().public static int nelement_count(long struct)
element_count().public static int nvertex_count(long struct)
vertex_count().public static int ncmd_count(long struct)
cmd_count().public static long ncmd_offset(long struct)
cmd_offset().public static int npath_count(long struct)
path_count().public static int npath_offset(long struct)
path_offset().public static int nline_AA(long struct)
line_AA().public static int nshape_AA(long struct)
shape_AA().public static NkHandle nuserdata(long struct)
userdata().Copyright LWJGL. All Rights Reserved. License terms.