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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aNkConvertConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintarc_segment_count(int value) Sets the specified value to thearc_segment_countfield.static NkConvertConfigcalloc()Returns a newNkConvertConfiginstance allocated withmemCalloc.static NkConvertConfig.Buffercalloc(int capacity) Returns a newNkConvertConfig.Bufferinstance allocated withmemCalloc.static NkConvertConfig.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkConvertConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkConvertConfigcalloc(MemoryStack stack) Returns a newNkConvertConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkConvertConfigDeprecated.static NkConvertConfig.BuffercallocStack(int capacity) Deprecated.static NkConvertConfig.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static NkConvertConfigcallocStack(MemoryStack stack) Deprecated.intcircle_segment_count(int value) Sets the specified value to thecircle_segment_countfield.static NkConvertConfigcreate()Returns a newNkConvertConfiginstance allocated withBufferUtils.static NkConvertConfig.Buffercreate(int capacity) Returns a newNkConvertConfig.Bufferinstance allocated withBufferUtils.static NkConvertConfigcreate(long address) Returns a newNkConvertConfiginstance for the specified memory address.static NkConvertConfig.Buffercreate(long address, int capacity) Create aNkConvertConfig.Bufferinstance at the specified memory.static @Nullable NkConvertConfigcreateSafe(long address) static @Nullable NkConvertConfig.BuffercreateSafe(long address, int capacity) intcurve_segment_count(int value) Sets the specified value to thecurve_segment_countfield.floatglobal_alpha(float value) Sets the specified value to theglobal_alphafield.intline_AA()line_AA(int value) Sets the specified value to theline_AAfield.static NkConvertConfigmalloc()Returns a newNkConvertConfiginstance allocated withmemAlloc.static NkConvertConfig.Buffermalloc(int capacity) Returns a newNkConvertConfig.Bufferinstance allocated withmemAlloc.static NkConvertConfig.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkConvertConfig.Bufferinstance allocated on the specifiedMemoryStack.static NkConvertConfigmalloc(MemoryStack stack) Returns a newNkConvertConfiginstance allocated on the specifiedMemoryStack.static NkConvertConfigDeprecated.static NkConvertConfig.BuffermallocStack(int capacity) Deprecated.static NkConvertConfig.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static NkConvertConfigmallocStack(MemoryStack stack) Deprecated.static intnarc_segment_count(long struct) Unsafe version ofarc_segment_count().static voidnarc_segment_count(long struct, int value) Unsafe version ofarc_segment_count.static intncircle_segment_count(long struct) Unsafe version ofcircle_segment_count().static voidncircle_segment_count(long struct, int value) Unsafe version ofcircle_segment_count.static intncurve_segment_count(long struct) Unsafe version ofcurve_segment_count().static voidncurve_segment_count(long struct, int value) Unsafe version ofcurve_segment_count.static floatnglobal_alpha(long struct) Unsafe version ofglobal_alpha().static voidnglobal_alpha(long struct, float value) Unsafe version ofglobal_alpha.static intnline_AA(long struct) Unsafe version ofline_AA().static voidnline_AA(long struct, int value) Unsafe version ofline_AA.static intnshape_AA(long struct) Unsafe version ofshape_AA().static voidnshape_AA(long struct, int value) Unsafe version ofshape_AA.static NkDrawNullTexturentex_null(long struct) Unsafe version oftex_null().static voidntex_null(long struct, NkDrawNullTexture value) Unsafe version oftex_null.static longnvertex_alignment(long struct) Unsafe version ofvertex_alignment().static voidnvertex_alignment(long struct, long value) Unsafe version ofvertex_alignment.nvertex_layout(long struct, int capacity) Unsafe version ofvertex_layout(int).static voidnvertex_layout(long struct, NkDrawVertexLayoutElement.Buffer value) Unsafe version ofvertex_layout.static longnvertex_size(long struct) Unsafe version ofvertex_size().static voidnvertex_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.intshape_AA()shape_AA(int value) Sets the specified value to theshape_AAfield.intsizeof()Returnssizeof(struct).tex_null()tex_null(Consumer<NkDrawNullTexture> consumer) Passes thetex_nullfield to the specifiedConsumer.tex_null(NkDrawNullTexture value) Copies the specifiedNkDrawNullTextureto thetex_nullfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.longvertex_alignment(long value) Sets the specified value to thevertex_alignmentfield.vertex_layout(int capacity) Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto thevertex_layoutfield.longvertex_size(long value) Sets the specified value to thevertex_sizefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aNkConvertConfiginstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkConvertConfig>
-
global_alpha
public float global_alpha()- Returns:
- the value of the
global_alphafield.
-
line_AA
public int line_AA()- Returns:
- the value of the
line_AAfield.
-
shape_AA
public int shape_AA()- Returns:
- the value of the
shape_AAfield.
-
circle_segment_count
public int circle_segment_count()- Returns:
- the value of the
circle_segment_countfield.
-
arc_segment_count
public int arc_segment_count()- Returns:
- the value of the
arc_segment_countfield.
-
curve_segment_count
public int curve_segment_count()- Returns:
- the value of the
curve_segment_countfield.
-
tex_null
- Returns:
- a
NkDrawNullTextureview of thetex_nullfield.
-
vertex_layout
- Returns:
- a
NkDrawVertexLayoutElement.Bufferview of the struct array pointed to by thevertex_layoutfield.
-
vertex_size
public long vertex_size()- Returns:
- the value of the
vertex_sizefield.
-
vertex_alignment
public long vertex_alignment()- Returns:
- the value of the
vertex_alignmentfield.
-
global_alpha
Sets the specified value to theglobal_alphafield. -
line_AA
Sets the specified value to theline_AAfield. -
shape_AA
Sets the specified value to theshape_AAfield. -
circle_segment_count
Sets the specified value to thecircle_segment_countfield. -
arc_segment_count
Sets the specified value to thearc_segment_countfield. -
curve_segment_count
Sets the specified value to thecurve_segment_countfield. -
tex_null
Copies the specifiedNkDrawNullTextureto thetex_nullfield. -
tex_null
Passes thetex_nullfield to the specifiedConsumer. -
vertex_layout
Sets the address of the specifiedNkDrawVertexLayoutElement.Bufferto thevertex_layoutfield. -
vertex_size
Sets the specified value to thevertex_sizefield. -
vertex_alignment
Sets the specified value to thevertex_alignmentfield. -
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 newNkConvertConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkConvertConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkConvertConfiginstance allocated withBufferUtils. -
create
Returns a newNkConvertConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkConvertConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkConvertConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkConvertConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkConvertConfig.Bufferinstance 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 newNkConvertConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkConvertConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkConvertConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkConvertConfig.Bufferinstance allocated on the specifiedMemoryStackand 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
-