Package org.lwjgl.nuklear
Class NkDrawList.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkDrawList,NkDrawList.Buffer>
-
- org.lwjgl.nuklear.NkDrawList.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkDrawList>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkDrawList
public static class NkDrawList.Buffer extends org.lwjgl.system.StructBuffer<NkDrawList,NkDrawList.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkDrawList
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkBuffer
buffer()
Returns aNkBuffer
view of the struct pointed to by thebuffer
field.NkVec2.Buffer
circle_vtx()
Returns aNkVec2
.Buffer view of thecircle_vtx
field.NkVec2
circle_vtx(int index)
Returns aNkVec2
view of the struct at the specified index of thecircle_vtx
field.NkRect
clip_rect()
Returns aNkRect
view of theclip_rect
field.int
cmd_count()
Returns the value of thecmd_count
field.long
cmd_offset()
Returns the value of thecmd_offset
field.NkConvertConfig
config()
Returns aNkConvertConfig
view of theconfig
field.int
element_count()
Returns the value of theelement_count
field.NkBuffer
elements()
Returns aNkBuffer
view of the struct pointed to by theelements
field.int
line_AA()
Returns the value of theline_AA
field.int
path_count()
Returns the value of thepath_count
field.int
path_offset()
Returns the value of thepath_offset
field.int
shape_AA()
Returns the value of theshape_AA
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.int
vertex_count()
Returns the value of thevertex_count
field.NkBuffer
vertices()
Returns aNkBuffer
view of the struct pointed to by thevertices
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkDrawList.Buffer
instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byNkDrawList.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
circle_vtx
public NkVec2.Buffer circle_vtx()
Returns aNkVec2
.Buffer view of thecircle_vtx
field.
-
circle_vtx
public NkVec2 circle_vtx(int index)
Returns aNkVec2
view of the struct at the specified index of thecircle_vtx
field.
-
config
public NkConvertConfig config()
Returns aNkConvertConfig
view of theconfig
field.
-
buffer
@Nullable public NkBuffer buffer()
Returns aNkBuffer
view of the struct pointed to by thebuffer
field.
-
vertices
@Nullable public NkBuffer vertices()
Returns aNkBuffer
view of the struct pointed to by thevertices
field.
-
elements
@Nullable public NkBuffer elements()
Returns aNkBuffer
view of the struct pointed to by theelements
field.
-
element_count
public int element_count()
Returns the value of theelement_count
field.
-
vertex_count
public int vertex_count()
Returns the value of thevertex_count
field.
-
cmd_count
public int cmd_count()
Returns the value of thecmd_count
field.
-
cmd_offset
public long cmd_offset()
Returns the value of thecmd_offset
field.
-
path_count
public int path_count()
Returns the value of thepath_count
field.
-
path_offset
public int path_offset()
Returns the value of thepath_offset
field.
-
line_AA
public int line_AA()
Returns the value of theline_AA
field.
-
shape_AA
public int shape_AA()
Returns the value of theshape_AA
field.
-
-