Package org.lwjgl.nuklear
Class NkDrawList
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nk_draw_list {
{@link NkRect struct nk_rect} clip_rect;
{@link NkVec2 struct nk_vec2} circle_vtx[12];
{@link NkConvertConfig struct nk_convert_config} config;
{@link NkBuffer struct nk_buffer} * buffer;
{@link NkBuffer struct nk_buffer} * vertices;
{@link NkBuffer 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;
{@link NkHandle nk_handle} userdata;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkDrawList
(ByteBuffer container) Creates aNkDrawList
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescription@Nullable NkBuffer
buffer()
static NkDrawList
calloc()
Returns a newNkDrawList
instance allocated withmemCalloc
.static NkDrawList.Buffer
calloc
(int capacity) Returns a newNkDrawList.Buffer
instance allocated withmemCalloc
.static NkDrawList.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkDrawList.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkDrawList
calloc
(MemoryStack stack) Returns a newNkDrawList
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkDrawList
Deprecated.static NkDrawList.Buffer
callocStack
(int capacity) Deprecated.static NkDrawList.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkDrawList
callocStack
(MemoryStack stack) Deprecated.circle_vtx
(int index) int
long
config()
static NkDrawList
create()
Returns a newNkDrawList
instance allocated withBufferUtils
.static NkDrawList.Buffer
create
(int capacity) Returns a newNkDrawList.Buffer
instance allocated withBufferUtils
.static NkDrawList
create
(long address) Returns a newNkDrawList
instance for the specified memory address.static NkDrawList.Buffer
create
(long address, int capacity) Create aNkDrawList.Buffer
instance at the specified memory.static @Nullable NkDrawList
createSafe
(long address) static @Nullable NkDrawList.Buffer
createSafe
(long address, int capacity) int
@Nullable NkBuffer
elements()
int
line_AA()
static NkDrawList
malloc()
Returns a newNkDrawList
instance allocated withmemAlloc
.static NkDrawList.Buffer
malloc
(int capacity) Returns a newNkDrawList.Buffer
instance allocated withmemAlloc
.static NkDrawList.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkDrawList.Buffer
instance allocated on the specifiedMemoryStack
.static NkDrawList
malloc
(MemoryStack stack) Returns a newNkDrawList
instance allocated on the specifiedMemoryStack
.static NkDrawList
Deprecated.static NkDrawList.Buffer
mallocStack
(int capacity) Deprecated.static NkDrawList.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkDrawList
mallocStack
(MemoryStack stack) Deprecated.static @Nullable NkBuffer
nbuffer
(long struct) Unsafe version ofbuffer()
.static NkVec2.Buffer
ncircle_vtx
(long struct) Unsafe version ofcircle_vtx()
.static NkVec2
ncircle_vtx
(long struct, int index) Unsafe version ofcircle_vtx
.static NkRect
nclip_rect
(long struct) Unsafe version ofclip_rect()
.static int
ncmd_count
(long struct) Unsafe version ofcmd_count()
.static long
ncmd_offset
(long struct) Unsafe version ofcmd_offset()
.static NkConvertConfig
nconfig
(long struct) Unsafe version ofconfig()
.static int
nelement_count
(long struct) Unsafe version ofelement_count()
.static @Nullable NkBuffer
nelements
(long struct) Unsafe version ofelements()
.static int
nline_AA
(long struct) Unsafe version ofline_AA()
.static int
npath_count
(long struct) Unsafe version ofpath_count()
.static int
npath_offset
(long struct) Unsafe version ofpath_offset()
.static int
nshape_AA
(long struct) Unsafe version ofshape_AA()
.static NkHandle
nuserdata
(long struct) Unsafe version ofuserdata()
.static int
nvertex_count
(long struct) Unsafe version ofvertex_count()
.static @Nullable NkBuffer
nvertices
(long struct) Unsafe version ofvertices()
.int
int
int
shape_AA()
int
sizeof()
Returnssizeof(struct)
.userdata()
int
@Nullable NkBuffer
vertices()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CLIP_RECT
public static final int CLIP_RECTThe struct member offsets. -
CIRCLE_VTX
public static final int CIRCLE_VTXThe struct member offsets. -
CONFIG
public static final int CONFIGThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
VERTICES
public static final int VERTICESThe struct member offsets. -
ELEMENTS
public static final int ELEMENTSThe struct member offsets. -
ELEMENT_COUNT
public static final int ELEMENT_COUNTThe struct member offsets. -
VERTEX_COUNT
public static final int VERTEX_COUNTThe struct member offsets. -
CMD_COUNT
public static final int CMD_COUNTThe struct member offsets. -
CMD_OFFSET
public static final int CMD_OFFSETThe struct member offsets. -
PATH_COUNT
public static final int PATH_COUNTThe struct member offsets. -
PATH_OFFSET
public static final int PATH_OFFSETThe struct member offsets. -
LINE_AA
public static final int LINE_AAThe struct member offsets. -
SHAPE_AA
public static final int SHAPE_AAThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets.
-
-
Constructor Details
-
NkDrawList
Creates aNkDrawList
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkDrawList>
-
clip_rect
- Returns:
- a
NkRect
view of theclip_rect
field.
-
circle_vtx
- Returns:
- a
NkVec2
.Buffer view of thecircle_vtx
field.
-
circle_vtx
- Returns:
- a
NkVec2
view of the struct at the specified index of thecircle_vtx
field.
-
config
- Returns:
- a
NkConvertConfig
view of theconfig
field.
-
buffer
- Returns:
- a
NkBuffer
view of the struct pointed to by thebuffer
field.
-
vertices
- Returns:
- a
NkBuffer
view of the struct pointed to by thevertices
field.
-
elements
- Returns:
- a
NkBuffer
view of the struct pointed to by theelements
field.
-
element_count
public int element_count()- Returns:
- the value of the
element_count
field.
-
vertex_count
public int vertex_count()- Returns:
- the value of the
vertex_count
field.
-
cmd_count
public int cmd_count()- Returns:
- the value of the
cmd_count
field.
-
cmd_offset
public long cmd_offset()- Returns:
- the value of the
cmd_offset
field.
-
path_count
public int path_count()- Returns:
- the value of the
path_count
field.
-
path_offset
public int path_offset()- Returns:
- the value of the
path_offset
field.
-
line_AA
public int line_AA()- Returns:
- the value of the
line_AA
field.
-
shape_AA
public int shape_AA()- Returns:
- the value of the
shape_AA
field.
-
userdata
- Returns:
- a
NkHandle
view of theuserdata
field.
-
malloc
Returns a newNkDrawList
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkDrawList
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkDrawList
instance allocated withBufferUtils
. -
create
Returns a newNkDrawList
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkDrawList.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkDrawList.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkDrawList.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkDrawList.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newNkDrawList
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkDrawList
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkDrawList.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkDrawList.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nclip_rect
Unsafe version ofclip_rect()
. -
ncircle_vtx
Unsafe version ofcircle_vtx()
. -
ncircle_vtx
Unsafe version ofcircle_vtx
. -
nconfig
Unsafe version ofconfig()
. -
nbuffer
Unsafe version ofbuffer()
. -
nvertices
Unsafe version ofvertices()
. -
nelements
Unsafe version ofelements()
. -
nelement_count
public static int nelement_count(long struct) Unsafe version ofelement_count()
. -
nvertex_count
public static int nvertex_count(long struct) Unsafe version ofvertex_count()
. -
ncmd_count
public static int ncmd_count(long struct) Unsafe version ofcmd_count()
. -
ncmd_offset
public static long ncmd_offset(long struct) Unsafe version ofcmd_offset()
. -
npath_count
public static int npath_count(long struct) Unsafe version ofpath_count()
. -
npath_offset
public static int npath_offset(long struct) Unsafe version ofpath_offset()
. -
nline_AA
public static int nline_AA(long struct) Unsafe version ofline_AA()
. -
nshape_AA
public static int nshape_AA(long struct) Unsafe version ofshape_AA()
. -
nuserdata
Unsafe version ofuserdata()
.
-