Package org.lwjgl.nuklear
Class NkConvertConfig.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkConvertConfig.Buffer>
org.lwjgl.system.StructBuffer<NkConvertConfig,NkConvertConfig.Buffer>
org.lwjgl.nuklear.NkConvertConfig.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkConvertConfig>,NativeResource,Pointer
- Enclosing class:
NkConvertConfig
public static class NkConvertConfig.Buffer
extends StructBuffer<NkConvertConfig,NkConvertConfig.Buffer>
implements NativeResource
An array of
NkConvertConfig structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newNkConvertConfig.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintarc_segment_count(int value) Sets the specified value to thearc_segment_countfield.intcircle_segment_count(int value) Sets the specified value to thecircle_segment_countfield.intcurve_segment_count(int value) Sets the specified value to thecurve_segment_countfield.floatglobal_alpha(float value) Sets the specified value to theglobal_alphafield.intline_AA()line_AA(int value) Sets the specified value to theline_AAfield.intshape_AA()shape_AA(int value) Sets the specified value to theshape_AAfield.tex_null()tex_null(Consumer<NkDrawNullTexture> consumer) Passes thetex_nullfield to the specifiedConsumer.tex_null(NkDrawNullTexture value) Copies the specifiedNkDrawNullTextureto thetex_nullfield.longvertex_alignment(long value) Sets the specified value to thevertex_alignmentfield.vertex_layout(int capacity) Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto thevertex_layoutfield.longvertex_size(long value) Sets the specified value to thevertex_sizefield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newNkConvertConfig.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 by
NkConvertConfig.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 Details
-
global_alpha
public float global_alpha()- Returns:
- the value of the
global_alphafield.
-
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.
-
circle_segment_count
public int circle_segment_count()- Returns:
- the value of the
circle_segment_countfield.
-
arc_segment_count
public int arc_segment_count()- Returns:
- the value of the
arc_segment_countfield.
-
curve_segment_count
public int curve_segment_count()- Returns:
- the value of the
curve_segment_countfield.
-
tex_null
- Returns:
- a
NkDrawNullTextureview of thetex_nullfield.
-
vertex_layout
- Returns:
- a
NkDrawVertexLayoutElement.Bufferview of the struct array pointed to by thevertex_layoutfield.
-
vertex_size
public long vertex_size()- Returns:
- the value of the
vertex_sizefield.
-
vertex_alignment
public long vertex_alignment()- Returns:
- the value of the
vertex_alignmentfield.
-
global_alpha
Sets the specified value to theglobal_alphafield. -
line_AA
Sets the specified value to theline_AAfield. -
shape_AA
Sets the specified value to theshape_AAfield. -
circle_segment_count
Sets the specified value to thecircle_segment_countfield. -
arc_segment_count
Sets the specified value to thearc_segment_countfield. -
curve_segment_count
Sets the specified value to thecurve_segment_countfield. -
tex_null
Copies the specifiedNkDrawNullTextureto thetex_nullfield. -
tex_null
Passes thetex_nullfield to the specifiedConsumer. -
vertex_layout
Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto thevertex_layoutfield. -
vertex_size
Sets the specified value to thevertex_sizefield. -
vertex_alignment
Sets the specified value to thevertex_alignmentfield.
-