Package org.lwjgl.nuklear
Class NkDrawList
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aNkDrawListinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription@Nullable NkBufferbuffer()static NkDrawListcalloc()Returns a newNkDrawListinstance allocated withmemCalloc.static NkDrawList.Buffercalloc(int capacity) Returns a newNkDrawList.Bufferinstance allocated withmemCalloc.static NkDrawList.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkDrawList.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawListcalloc(MemoryStack stack) Returns a newNkDrawListinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.circle_vtx(int index) intlongconfig()static NkDrawListcreate()Returns a newNkDrawListinstance allocated withBufferUtils.static NkDrawList.Buffercreate(int capacity) Returns a newNkDrawList.Bufferinstance allocated withBufferUtils.static NkDrawListcreate(long address) Returns a newNkDrawListinstance for the specified memory address.static NkDrawList.Buffercreate(long address, int capacity) Create aNkDrawList.Bufferinstance at the specified memory.static @Nullable NkDrawListcreateSafe(long address) static @Nullable NkDrawList.BuffercreateSafe(long address, int capacity) int@Nullable NkBufferelements()intline_AA()static NkDrawListmalloc()Returns a newNkDrawListinstance allocated withmemAlloc.static NkDrawList.Buffermalloc(int capacity) Returns a newNkDrawList.Bufferinstance allocated withmemAlloc.static NkDrawList.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkDrawList.Bufferinstance allocated on the specifiedMemoryStack.static NkDrawListmalloc(MemoryStack stack) Returns a newNkDrawListinstance allocated on the specifiedMemoryStack.static @Nullable NkBuffernbuffer(long struct) Unsafe version ofbuffer().static NkVec2.Bufferncircle_vtx(long struct) Unsafe version ofcircle_vtx().static NkVec2ncircle_vtx(long struct, int index) Unsafe version ofcircle_vtx.static NkRectnclip_rect(long struct) Unsafe version ofclip_rect().static intncmd_count(long struct) Unsafe version ofcmd_count().static longncmd_offset(long struct) Unsafe version ofcmd_offset().static NkConvertConfignconfig(long struct) Unsafe version ofconfig().static intnelement_count(long struct) Unsafe version ofelement_count().static @Nullable NkBuffernelements(long struct) Unsafe version ofelements().static intnline_AA(long struct) Unsafe version ofline_AA().static intnpath_count(long struct) Unsafe version ofpath_count().static intnpath_offset(long struct) Unsafe version ofpath_offset().static intnshape_AA(long struct) Unsafe version ofshape_AA().static NkHandlenuserdata(long struct) Unsafe version ofuserdata().static intnvertex_count(long struct) Unsafe version ofvertex_count().static @Nullable NkBuffernvertices(long struct) Unsafe version ofvertices().intintintshape_AA()intsizeof()Returnssizeof(struct).userdata()int@Nullable NkBuffervertices()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aNkDrawListinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkDrawList>
-
clip_rect
- Returns:
- a
NkRectview of theclip_rectfield.
-
circle_vtx
- Returns:
- a
NkVec2.Buffer view of thecircle_vtxfield.
-
circle_vtx
- Returns:
- a
NkVec2view of the struct at the specified index of thecircle_vtxfield.
-
config
- Returns:
- a
NkConvertConfigview of theconfigfield.
-
buffer
- Returns:
- a
NkBufferview of the struct pointed to by thebufferfield.
-
vertices
- Returns:
- a
NkBufferview of the struct pointed to by theverticesfield.
-
elements
- Returns:
- a
NkBufferview of the struct pointed to by theelementsfield.
-
element_count
public int element_count()- Returns:
- the value of the
element_countfield.
-
vertex_count
public int vertex_count()- Returns:
- the value of the
vertex_countfield.
-
cmd_count
public int cmd_count()- Returns:
- the value of the
cmd_countfield.
-
cmd_offset
public long cmd_offset()- Returns:
- the value of the
cmd_offsetfield.
-
path_count
public int path_count()- Returns:
- the value of the
path_countfield.
-
path_offset
public int path_offset()- Returns:
- the value of the
path_offsetfield.
-
line_AA
public int line_AA()- Returns:
- the value of the
line_AAfield.
-
shape_AA
public int shape_AA()- Returns:
- the value of the
shape_AAfield.
-
userdata
- Returns:
- a
NkHandleview of theuserdatafield.
-
malloc
Returns a newNkDrawListinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkDrawListinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkDrawListinstance allocated withBufferUtils. -
create
Returns a newNkDrawListinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkDrawList.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkDrawList.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkDrawList.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkDrawList.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNkDrawListinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkDrawListinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkDrawList.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkDrawList.Bufferinstance allocated on the specifiedMemoryStackand 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().
-