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 ofNkDrawListstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkBufferbuffer()NkVec2.Buffercircle_vtx()NkVec2circle_vtx(int index)NkRectclip_rect()intcmd_count()longcmd_offset()NkConvertConfigconfig()intelement_count()NkBufferelements()intline_AA()intpath_count()intpath_offset()intshape_AA()NkHandleuserdata()intvertex_count()NkBuffervertices()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkDrawList.Bufferinstance 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:
- a
NkVec2.Buffer view of thecircle_vtxfield.
-
circle_vtx
public NkVec2 circle_vtx(int index)
- Returns:
- a
NkVec2view of the struct at the specified index of thecircle_vtxfield.
-
config
public NkConvertConfig config()
- Returns:
- a
NkConvertConfigview of theconfigfield.
-
buffer
@Nullable public NkBuffer buffer()
- Returns:
- a
NkBufferview of the struct pointed to by thebufferfield.
-
vertices
@Nullable public NkBuffer vertices()
- Returns:
- a
NkBufferview of the struct pointed to by theverticesfield.
-
elements
@Nullable public NkBuffer 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.
-
-