Package org.lwjgl.nuklear
Class NkConvertConfig.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkConvertConfig,NkConvertConfig.Buffer>
-
- org.lwjgl.nuklear.NkConvertConfig.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkConvertConfig>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkConvertConfig
public static class NkConvertConfig.Buffer extends org.lwjgl.system.StructBuffer<NkConvertConfig,NkConvertConfig.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkConvertConfigstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkConvertConfig.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intarc_segment_count()Returns the value of thearc_segment_countfield.NkConvertConfig.Bufferarc_segment_count(int value)Sets the specified value to thearc_segment_countfield.intcircle_segment_count()Returns the value of thecircle_segment_countfield.NkConvertConfig.Buffercircle_segment_count(int value)Sets the specified value to thecircle_segment_countfield.intcurve_segment_count()Returns the value of thecurve_segment_countfield.NkConvertConfig.Buffercurve_segment_count(int value)Sets the specified value to thecurve_segment_countfield.floatglobal_alpha()Returns the value of theglobal_alphafield.NkConvertConfig.Bufferglobal_alpha(float value)Sets the specified value to theglobal_alphafield.intline_AA()Returns the value of theline_AAfield.NkConvertConfig.Bufferline_AA(int value)Sets the specified value to theline_AAfield.NkDrawNullTexturenull_texture()Returns aNkDrawNullTextureview of thenull_texturefield.NkConvertConfig.Buffernull_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)Passes thenull_texturefield to the specifiedConsumer.NkConvertConfig.Buffernull_texture(NkDrawNullTexture value)Copies the specifiedNkDrawNullTextureto thenull_texturefield.intshape_AA()Returns the value of theshape_AAfield.NkConvertConfig.Buffershape_AA(int value)Sets the specified value to theshape_AAfield.longvertex_alignment()Returns the value of thevertex_alignmentfield.NkConvertConfig.Buffervertex_alignment(long value)Sets the specified value to thevertex_alignmentfield.NkDrawVertexLayoutElement.Buffervertex_layout(int capacity)Returns aNkDrawVertexLayoutElement.Bufferview of the struct array pointed to by thevertex_layoutfield.NkConvertConfig.Buffervertex_layout(NkDrawVertexLayoutElement.Buffer value)Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto thevertex_layoutfield.longvertex_size()Returns the value of thevertex_sizefield.NkConvertConfig.Buffervertex_size(long value)Sets the specified value to thevertex_sizefield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 byNkConvertConfig.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
-
global_alpha
public float global_alpha()
Returns the value of theglobal_alphafield.
-
line_AA
public int line_AA()
Returns the value of theline_AAfield.
-
shape_AA
public int shape_AA()
Returns the value of theshape_AAfield.
-
circle_segment_count
public int circle_segment_count()
Returns the value of thecircle_segment_countfield.
-
arc_segment_count
public int arc_segment_count()
Returns the value of thearc_segment_countfield.
-
curve_segment_count
public int curve_segment_count()
Returns the value of thecurve_segment_countfield.
-
null_texture
public NkDrawNullTexture null_texture()
Returns aNkDrawNullTextureview of thenull_texturefield.
-
null_texture
public NkConvertConfig.Buffer null_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)
Passes thenull_texturefield to the specifiedConsumer.
-
vertex_layout
public NkDrawVertexLayoutElement.Buffer vertex_layout(int capacity)
Returns aNkDrawVertexLayoutElement.Bufferview of the struct array pointed to by thevertex_layoutfield.- Parameters:
capacity- the number of elements in the returned buffer
-
vertex_size
public long vertex_size()
Returns the value of thevertex_sizefield.
-
vertex_alignment
public long vertex_alignment()
Returns the value of thevertex_alignmentfield.
-
global_alpha
public NkConvertConfig.Buffer global_alpha(float value)
Sets the specified value to theglobal_alphafield.
-
line_AA
public NkConvertConfig.Buffer line_AA(int value)
Sets the specified value to theline_AAfield.
-
shape_AA
public NkConvertConfig.Buffer shape_AA(int value)
Sets the specified value to theshape_AAfield.
-
circle_segment_count
public NkConvertConfig.Buffer circle_segment_count(int value)
Sets the specified value to thecircle_segment_countfield.
-
arc_segment_count
public NkConvertConfig.Buffer arc_segment_count(int value)
Sets the specified value to thearc_segment_countfield.
-
curve_segment_count
public NkConvertConfig.Buffer curve_segment_count(int value)
Sets the specified value to thecurve_segment_countfield.
-
null_texture
public NkConvertConfig.Buffer null_texture(NkDrawNullTexture value)
Copies the specifiedNkDrawNullTextureto thenull_texturefield.
-
vertex_layout
public NkConvertConfig.Buffer vertex_layout(NkDrawVertexLayoutElement.Buffer value)
Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto thevertex_layoutfield.
-
vertex_size
public NkConvertConfig.Buffer vertex_size(long value)
Sets the specified value to thevertex_sizefield.
-
vertex_alignment
public NkConvertConfig.Buffer vertex_alignment(long value)
Sets the specified value to thevertex_alignmentfield.
-
-