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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkDrawList.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkBufferbuffer()Returns aNkBufferview of the struct pointed to by thebufferfield.NkVec2.Buffercircle_vtx()Returns aNkVec2.Buffer view of thecircle_vtxfield.NkVec2circle_vtx(int index)Returns aNkVec2view of the struct at the specified index of thecircle_vtxfield.NkRectclip_rect()Returns aNkRectview of theclip_rectfield.NkDrawList.Bufferclip_rect(java.util.function.Consumer<NkRect> consumer)Passes theclip_rectfield to the specifiedConsumer.intcmd_count()Returns the value of thecmd_countfield.longcmd_offset()Returns the value of thecmd_offsetfield.NkConvertConfigconfig()Returns aNkConvertConfigview of theconfigfield.NkDrawList.Bufferconfig(java.util.function.Consumer<NkConvertConfig> consumer)Passes theconfigfield to the specifiedConsumer.intelement_count()Returns the value of theelement_countfield.NkBufferelements()Returns aNkBufferview of the struct pointed to by theelementsfield.intline_AA()Returns the value of theline_AAfield.intpath_count()Returns the value of thepath_countfield.intpath_offset()Returns the value of thepath_offsetfield.intshape_AA()Returns the value of theshape_AAfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkDrawList.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.intvertex_count()Returns the value of thevertex_countfield.NkBuffervertices()Returns aNkBufferview of the struct pointed to by theverticesfield.
-
-
-
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
-
clip_rect
public NkDrawList.Buffer clip_rect(java.util.function.Consumer<NkRect> consumer)
Passes theclip_rectfield to the specifiedConsumer.
-
circle_vtx
public NkVec2.Buffer circle_vtx()
Returns aNkVec2.Buffer view of thecircle_vtxfield.
-
circle_vtx
public NkVec2 circle_vtx(int index)
Returns aNkVec2view of the struct at the specified index of thecircle_vtxfield.
-
config
public NkConvertConfig config()
Returns aNkConvertConfigview of theconfigfield.
-
config
public NkDrawList.Buffer config(java.util.function.Consumer<NkConvertConfig> consumer)
Passes theconfigfield to the specifiedConsumer.
-
buffer
@Nullable public NkBuffer buffer()
Returns aNkBufferview of the struct pointed to by thebufferfield.
-
vertices
@Nullable public NkBuffer vertices()
Returns aNkBufferview of the struct pointed to by theverticesfield.
-
elements
@Nullable public NkBuffer elements()
Returns aNkBufferview of the struct pointed to by theelementsfield.
-
element_count
public int element_count()
Returns the value of theelement_countfield.
-
vertex_count
public int vertex_count()
Returns the value of thevertex_countfield.
-
cmd_count
public int cmd_count()
Returns the value of thecmd_countfield.
-
cmd_offset
public long cmd_offset()
Returns the value of thecmd_offsetfield.
-
path_count
public int path_count()
Returns the value of thepath_countfield.
-
path_offset
public int path_offset()
Returns the value of thepath_offsetfield.
-
line_AA
public int line_AA()
Returns the value of theline_AAfield.
-
shape_AA
public int shape_AA()
Returns the value of theshape_AAfield.
-
userdata
public NkDrawList.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
-