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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
arc_segment_count
(int value) Sets the specified value to thearc_segment_count
field.int
circle_segment_count
(int value) Sets the specified value to thecircle_segment_count
field.int
curve_segment_count
(int value) Sets the specified value to thecurve_segment_count
field.float
global_alpha
(float value) Sets the specified value to theglobal_alpha
field.int
line_AA()
line_AA
(int value) Sets the specified value to theline_AA
field.int
shape_AA()
shape_AA
(int value) Sets the specified value to theshape_AA
field.tex_null()
tex_null
(Consumer<NkDrawNullTexture> consumer) Passes thetex_null
field to the specifiedConsumer
.tex_null
(NkDrawNullTexture value) Copies the specifiedNkDrawNullTexture
to thetex_null
field.long
vertex_alignment
(long value) Sets the specified value to thevertex_alignment
field.vertex_layout
(int capacity) Sets the address of the specifiedNkDrawVertexLayoutElement.Buffer
to thevertex_layout
field.long
vertex_size
(long value) Sets the specified value to thevertex_size
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 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_alpha
field.
-
line_AA
public int line_AA()- Returns:
- the value of the
line_AA
field.
-
shape_AA
public int shape_AA()- Returns:
- the value of the
shape_AA
field.
-
circle_segment_count
public int circle_segment_count()- Returns:
- the value of the
circle_segment_count
field.
-
arc_segment_count
public int arc_segment_count()- Returns:
- the value of the
arc_segment_count
field.
-
curve_segment_count
public int curve_segment_count()- Returns:
- the value of the
curve_segment_count
field.
-
tex_null
- Returns:
- a
NkDrawNullTexture
view of thetex_null
field.
-
vertex_layout
- Returns:
- a
NkDrawVertexLayoutElement.Buffer
view of the struct array pointed to by thevertex_layout
field.
-
vertex_size
public long vertex_size()- Returns:
- the value of the
vertex_size
field.
-
vertex_alignment
public long vertex_alignment()- Returns:
- the value of the
vertex_alignment
field.
-
global_alpha
Sets the specified value to theglobal_alpha
field. -
line_AA
Sets the specified value to theline_AA
field. -
shape_AA
Sets the specified value to theshape_AA
field. -
circle_segment_count
Sets the specified value to thecircle_segment_count
field. -
arc_segment_count
Sets the specified value to thearc_segment_count
field. -
curve_segment_count
Sets the specified value to thecurve_segment_count
field. -
tex_null
Copies the specifiedNkDrawNullTexture
to thetex_null
field. -
tex_null
Passes thetex_null
field to the specifiedConsumer
. -
vertex_layout
Sets the address of the specifiedNkDrawVertexLayoutElement.Buffer
to thevertex_layout
field. -
vertex_size
Sets the specified value to thevertex_size
field. -
vertex_alignment
Sets the specified value to thevertex_alignment
field.
-