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 ofNkConvertConfig
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
arc_segment_count()
Returns the value of thearc_segment_count
field.NkConvertConfig.Buffer
arc_segment_count(int value)
Sets the specified value to thearc_segment_count
field.int
circle_segment_count()
Returns the value of thecircle_segment_count
field.NkConvertConfig.Buffer
circle_segment_count(int value)
Sets the specified value to thecircle_segment_count
field.int
curve_segment_count()
Returns the value of thecurve_segment_count
field.NkConvertConfig.Buffer
curve_segment_count(int value)
Sets the specified value to thecurve_segment_count
field.float
global_alpha()
Returns the value of theglobal_alpha
field.NkConvertConfig.Buffer
global_alpha(float value)
Sets the specified value to theglobal_alpha
field.int
line_AA()
Returns the value of theline_AA
field.NkConvertConfig.Buffer
line_AA(int value)
Sets the specified value to theline_AA
field.NkDrawNullTexture
null_texture()
Returns aNkDrawNullTexture
view of thenull_texture
field.NkConvertConfig.Buffer
null_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)
Passes thenull_texture
field to the specifiedConsumer
.NkConvertConfig.Buffer
null_texture(NkDrawNullTexture value)
Copies the specifiedNkDrawNullTexture
to thenull_texture
field.int
shape_AA()
Returns the value of theshape_AA
field.NkConvertConfig.Buffer
shape_AA(int value)
Sets the specified value to theshape_AA
field.long
vertex_alignment()
Returns the value of thevertex_alignment
field.NkConvertConfig.Buffer
vertex_alignment(long value)
Sets the specified value to thevertex_alignment
field.NkDrawVertexLayoutElement.Buffer
vertex_layout(int capacity)
Returns aNkDrawVertexLayoutElement.Buffer
view of the struct array pointed to by thevertex_layout
field.NkConvertConfig.Buffer
vertex_layout(NkDrawVertexLayoutElement.Buffer value)
Sets the address of the specifiedNkDrawVertexLayoutElement.Buffer
to thevertex_layout
field.long
vertex_size()
Returns the value of thevertex_size
field.NkConvertConfig.Buffer
vertex_size(long value)
Sets the specified value to thevertex_size
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkConvertConfig.Buffer
instance 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_alpha
field.
-
line_AA
public int line_AA()
Returns the value of theline_AA
field.
-
shape_AA
public int shape_AA()
Returns the value of theshape_AA
field.
-
circle_segment_count
public int circle_segment_count()
Returns the value of thecircle_segment_count
field.
-
arc_segment_count
public int arc_segment_count()
Returns the value of thearc_segment_count
field.
-
curve_segment_count
public int curve_segment_count()
Returns the value of thecurve_segment_count
field.
-
null_texture
public NkDrawNullTexture null_texture()
Returns aNkDrawNullTexture
view of thenull_texture
field.
-
vertex_layout
public NkDrawVertexLayoutElement.Buffer vertex_layout(int capacity)
Returns aNkDrawVertexLayoutElement.Buffer
view of the struct array pointed to by thevertex_layout
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
vertex_size
public long vertex_size()
Returns the value of thevertex_size
field.
-
vertex_alignment
public long vertex_alignment()
Returns the value of thevertex_alignment
field.
-
global_alpha
public NkConvertConfig.Buffer global_alpha(float value)
Sets the specified value to theglobal_alpha
field.
-
line_AA
public NkConvertConfig.Buffer line_AA(int value)
Sets the specified value to theline_AA
field.
-
shape_AA
public NkConvertConfig.Buffer shape_AA(int value)
Sets the specified value to theshape_AA
field.
-
circle_segment_count
public NkConvertConfig.Buffer circle_segment_count(int value)
Sets the specified value to thecircle_segment_count
field.
-
arc_segment_count
public NkConvertConfig.Buffer arc_segment_count(int value)
Sets the specified value to thearc_segment_count
field.
-
curve_segment_count
public NkConvertConfig.Buffer curve_segment_count(int value)
Sets the specified value to thecurve_segment_count
field.
-
null_texture
public NkConvertConfig.Buffer null_texture(NkDrawNullTexture value)
Copies the specifiedNkDrawNullTexture
to thenull_texture
field.
-
null_texture
public NkConvertConfig.Buffer null_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)
Passes thenull_texture
field to the specifiedConsumer
.
-
vertex_layout
public NkConvertConfig.Buffer vertex_layout(NkDrawVertexLayoutElement.Buffer value)
Sets the address of the specifiedNkDrawVertexLayoutElement.Buffer
to thevertex_layout
field.
-
vertex_size
public NkConvertConfig.Buffer vertex_size(long value)
Sets the specified value to thevertex_size
field.
-
vertex_alignment
public NkConvertConfig.Buffer vertex_alignment(long value)
Sets the specified value to thevertex_alignment
field.
-
-