Package org.lwjgl.nuklear
Class NkConvertConfig
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nk_convert_config {
float global_alpha;
enum nk_anti_aliasing line_AA;
enum nk_anti_aliasing shape_AA;
unsigned int circle_segment_count;
unsigned int arc_segment_count;
unsigned int curve_segment_count;
{@link NkDrawNullTexture struct nk_draw_null_texture} tex_null;
{@link NkDrawVertexLayoutElement struct nk_draw_vertex_layout_element} * vertex_layout;
nk_size vertex_size;
nk_size vertex_alignment;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkConvertConfig
(ByteBuffer container) Creates aNkConvertConfig
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
arc_segment_count
(int value) Sets the specified value to thearc_segment_count
field.static NkConvertConfig
calloc()
Returns a newNkConvertConfig
instance allocated withmemCalloc
.static NkConvertConfig.Buffer
calloc
(int capacity) Returns a newNkConvertConfig.Buffer
instance allocated withmemCalloc
.static NkConvertConfig.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkConvertConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkConvertConfig
calloc
(MemoryStack stack) Returns a newNkConvertConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkConvertConfig
Deprecated.static NkConvertConfig.Buffer
callocStack
(int capacity) Deprecated.static NkConvertConfig.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkConvertConfig
callocStack
(MemoryStack stack) Deprecated.int
circle_segment_count
(int value) Sets the specified value to thecircle_segment_count
field.static NkConvertConfig
create()
Returns a newNkConvertConfig
instance allocated withBufferUtils
.static NkConvertConfig.Buffer
create
(int capacity) Returns a newNkConvertConfig.Buffer
instance allocated withBufferUtils
.static NkConvertConfig
create
(long address) Returns a newNkConvertConfig
instance for the specified memory address.static NkConvertConfig.Buffer
create
(long address, int capacity) Create aNkConvertConfig.Buffer
instance at the specified memory.static @Nullable NkConvertConfig
createSafe
(long address) static @Nullable NkConvertConfig.Buffer
createSafe
(long address, int capacity) 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.static NkConvertConfig
malloc()
Returns a newNkConvertConfig
instance allocated withmemAlloc
.static NkConvertConfig.Buffer
malloc
(int capacity) Returns a newNkConvertConfig.Buffer
instance allocated withmemAlloc
.static NkConvertConfig.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkConvertConfig.Buffer
instance allocated on the specifiedMemoryStack
.static NkConvertConfig
malloc
(MemoryStack stack) Returns a newNkConvertConfig
instance allocated on the specifiedMemoryStack
.static NkConvertConfig
Deprecated.static NkConvertConfig.Buffer
mallocStack
(int capacity) Deprecated.static NkConvertConfig.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkConvertConfig
mallocStack
(MemoryStack stack) Deprecated.static int
narc_segment_count
(long struct) Unsafe version ofarc_segment_count()
.static void
narc_segment_count
(long struct, int value) Unsafe version ofarc_segment_count
.static int
ncircle_segment_count
(long struct) Unsafe version ofcircle_segment_count()
.static void
ncircle_segment_count
(long struct, int value) Unsafe version ofcircle_segment_count
.static int
ncurve_segment_count
(long struct) Unsafe version ofcurve_segment_count()
.static void
ncurve_segment_count
(long struct, int value) Unsafe version ofcurve_segment_count
.static float
nglobal_alpha
(long struct) Unsafe version ofglobal_alpha()
.static void
nglobal_alpha
(long struct, float value) Unsafe version ofglobal_alpha
.static int
nline_AA
(long struct) Unsafe version ofline_AA()
.static void
nline_AA
(long struct, int value) Unsafe version ofline_AA
.static int
nshape_AA
(long struct) Unsafe version ofshape_AA()
.static void
nshape_AA
(long struct, int value) Unsafe version ofshape_AA
.static NkDrawNullTexture
ntex_null
(long struct) Unsafe version oftex_null()
.static void
ntex_null
(long struct, NkDrawNullTexture value) Unsafe version oftex_null
.static long
nvertex_alignment
(long struct) Unsafe version ofvertex_alignment()
.static void
nvertex_alignment
(long struct, long value) Unsafe version ofvertex_alignment
.nvertex_layout
(long struct, int capacity) Unsafe version ofvertex_layout(int)
.static void
nvertex_layout
(long struct, NkDrawVertexLayoutElement.Buffer value) Unsafe version ofvertex_layout
.static long
nvertex_size
(long struct) Unsafe version ofvertex_size()
.static void
nvertex_size
(long struct, long value) Unsafe version ofvertex_size
.set
(float global_alpha, int line_AA, int shape_AA, int circle_segment_count, int arc_segment_count, int curve_segment_count, NkDrawNullTexture tex_null, NkDrawVertexLayoutElement.Buffer vertex_layout, long vertex_size, long vertex_alignment) Initializes this struct with the specified values.set
(NkConvertConfig src) Copies the specified struct data to this struct.int
shape_AA()
shape_AA
(int value) Sets the specified value to theshape_AA
field.int
sizeof()
Returnssizeof(struct)
.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.static void
validate
(long struct) Validates pointer members that should not beNULL
.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.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
GLOBAL_ALPHA
public static final int GLOBAL_ALPHAThe struct member offsets. -
LINE_AA
public static final int LINE_AAThe struct member offsets. -
SHAPE_AA
public static final int SHAPE_AAThe struct member offsets. -
CIRCLE_SEGMENT_COUNT
public static final int CIRCLE_SEGMENT_COUNTThe struct member offsets. -
ARC_SEGMENT_COUNT
public static final int ARC_SEGMENT_COUNTThe struct member offsets. -
CURVE_SEGMENT_COUNT
public static final int CURVE_SEGMENT_COUNTThe struct member offsets. -
TEX_NULL
public static final int TEX_NULLThe struct member offsets. -
VERTEX_LAYOUT
public static final int VERTEX_LAYOUTThe struct member offsets. -
VERTEX_SIZE
public static final int VERTEX_SIZEThe struct member offsets. -
VERTEX_ALIGNMENT
public static final int VERTEX_ALIGNMENTThe struct member offsets.
-
-
Constructor Details
-
NkConvertConfig
Creates aNkConvertConfig
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkConvertConfig>
-
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. -
set
public NkConvertConfig set(float global_alpha, int line_AA, int shape_AA, int circle_segment_count, int arc_segment_count, int curve_segment_count, NkDrawNullTexture tex_null, NkDrawVertexLayoutElement.Buffer vertex_layout, long vertex_size, long vertex_alignment) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newNkConvertConfig
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkConvertConfig
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkConvertConfig
instance allocated withBufferUtils
. -
create
Returns a newNkConvertConfig
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkConvertConfig.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkConvertConfig.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkConvertConfig.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkConvertConfig.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newNkConvertConfig
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkConvertConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkConvertConfig.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkConvertConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nglobal_alpha
public static float nglobal_alpha(long struct) Unsafe version ofglobal_alpha()
. -
nline_AA
public static int nline_AA(long struct) Unsafe version ofline_AA()
. -
nshape_AA
public static int nshape_AA(long struct) Unsafe version ofshape_AA()
. -
ncircle_segment_count
public static int ncircle_segment_count(long struct) Unsafe version ofcircle_segment_count()
. -
narc_segment_count
public static int narc_segment_count(long struct) Unsafe version ofarc_segment_count()
. -
ncurve_segment_count
public static int ncurve_segment_count(long struct) Unsafe version ofcurve_segment_count()
. -
ntex_null
Unsafe version oftex_null()
. -
nvertex_layout
Unsafe version ofvertex_layout(int)
. -
nvertex_size
public static long nvertex_size(long struct) Unsafe version ofvertex_size()
. -
nvertex_alignment
public static long nvertex_alignment(long struct) Unsafe version ofvertex_alignment()
. -
nglobal_alpha
public static void nglobal_alpha(long struct, float value) Unsafe version ofglobal_alpha
. -
nline_AA
public static void nline_AA(long struct, int value) Unsafe version ofline_AA
. -
nshape_AA
public static void nshape_AA(long struct, int value) Unsafe version ofshape_AA
. -
ncircle_segment_count
public static void ncircle_segment_count(long struct, int value) Unsafe version ofcircle_segment_count
. -
narc_segment_count
public static void narc_segment_count(long struct, int value) Unsafe version ofarc_segment_count
. -
ncurve_segment_count
public static void ncurve_segment_count(long struct, int value) Unsafe version ofcurve_segment_count
. -
ntex_null
Unsafe version oftex_null
. -
nvertex_layout
Unsafe version ofvertex_layout
. -
nvertex_size
public static void nvertex_size(long struct, long value) Unsafe version ofvertex_size
. -
nvertex_alignment
public static void nvertex_alignment(long struct, long value) Unsafe version ofvertex_alignment
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-