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.
-
-
Method Summary
-
-
-
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 the
NkConvertConfig.global_alpha()field.
-
line_AA
public int line_AA()
- Returns:
- the value of the
NkConvertConfig.line_AA()field.
-
shape_AA
public int shape_AA()
- Returns:
- the value of the
NkConvertConfig.shape_AA()field.
-
circle_segment_count
public int circle_segment_count()
- Returns:
- the value of the
NkConvertConfig.circle_segment_count()field.
-
arc_segment_count
public int arc_segment_count()
- Returns:
- the value of the
NkConvertConfig.arc_segment_count()field.
-
curve_segment_count
public int curve_segment_count()
- Returns:
- the value of the
NkConvertConfig.curve_segment_count()field.
-
null_texture
public NkDrawNullTexture null_texture()
- Returns:
- a
NkDrawNullTextureview of theNkConvertConfig.null_texture()field.
-
vertex_layout
public NkDrawVertexLayoutElement.Buffer vertex_layout(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
NkDrawVertexLayoutElement.Bufferview of the struct array pointed to by theNkConvertConfig.vertex_layout(int)field.
-
vertex_size
public long vertex_size()
- Returns:
- the value of the
NkConvertConfig.vertex_size()field.
-
vertex_alignment
public long vertex_alignment()
- Returns:
- the value of the
NkConvertConfig.vertex_alignment()field.
-
global_alpha
public NkConvertConfig.Buffer global_alpha(float value)
Sets the specified value to theNkConvertConfig.global_alpha()field.
-
line_AA
public NkConvertConfig.Buffer line_AA(int value)
Sets the specified value to theNkConvertConfig.line_AA()field.
-
shape_AA
public NkConvertConfig.Buffer shape_AA(int value)
Sets the specified value to theNkConvertConfig.shape_AA()field.
-
circle_segment_count
public NkConvertConfig.Buffer circle_segment_count(int value)
Sets the specified value to theNkConvertConfig.circle_segment_count()field.
-
arc_segment_count
public NkConvertConfig.Buffer arc_segment_count(int value)
Sets the specified value to theNkConvertConfig.arc_segment_count()field.
-
curve_segment_count
public NkConvertConfig.Buffer curve_segment_count(int value)
Sets the specified value to theNkConvertConfig.curve_segment_count()field.
-
null_texture
public NkConvertConfig.Buffer null_texture(NkDrawNullTexture value)
Copies the specifiedNkDrawNullTextureto theNkConvertConfig.null_texture()field.
-
null_texture
public NkConvertConfig.Buffer null_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)
Passes theNkConvertConfig.null_texture()field to the specifiedConsumer.
-
vertex_layout
public NkConvertConfig.Buffer vertex_layout(NkDrawVertexLayoutElement.Buffer value)
Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto theNkConvertConfig.vertex_layout(int)field.
-
vertex_size
public NkConvertConfig.Buffer vertex_size(long value)
Sets the specified value to theNkConvertConfig.vertex_size()field.
-
vertex_alignment
public NkConvertConfig.Buffer vertex_alignment(long value)
Sets the specified value to theNkConvertConfig.vertex_alignment()field.
-
-