Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkConvertConfig

extends Struct<NkConvertConfig>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct nk_convert_config
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


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;
    struct nk_draw_null_texture tex_null;
    struct nk_draw_vertex_layout_element * vertex_layout;
    nk_size vertex_size;
    nk_size vertex_alignment;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ARC_SEGMENT_COUNT

The struct member offsets.

public static final int
CIRCLE_SEGMENT_COUNT

The struct member offsets.

public static final int
CURVE_SEGMENT_COUNT

The struct member offsets.

public static final int
GLOBAL_ALPHA

The struct member offsets.

public static final int
LINE_AA

The struct member offsets.

public static final int
SHAPE_AA

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEX_NULL

The struct member offsets.

public static final int
VERTEX_ALIGNMENT

The struct member offsets.

public static final int
VERTEX_LAYOUT

The struct member offsets.

public static final int
VERTEX_SIZE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
NkConvertConfig(long address, ByteBuffer container)

public
NkConvertConfig(ByteBuffer container)

Creates a NkConvertConfig instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
arc_segment_count()

number of segments used for arcs: default to 22

public NkConvertConfig
arc_segment_count(int value)

Sets the specified value to the arc_segment_count field.

public static NkConvertConfig
calloc()

Returns a new NkConvertConfig instance allocated with memCalloc.

public static NkConvertConfig.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new NkConvertConfig.Buffer instance allocated with memCalloc.

public static NkConvertConfig
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new NkConvertConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static NkConvertConfig.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new NkConvertConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static NkConvertConfig
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static NkConvertConfig
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkConvertConfig.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static NkConvertConfig.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
circle_segment_count()

number of segments used for circles: default to 22

public NkConvertConfig
circle_segment_count(int value)

Sets the specified value to the circle_segment_count field.

protected NkConvertConfig
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static NkConvertConfig
create()

Returns a new NkConvertConfig instance allocated with BufferUtils.

public static NkConvertConfig
create(long address)

Returns a new NkConvertConfig instance for the specified memory address.

public static NkConvertConfig.Buffer
create(int
the buffer capacity
capacity
)

Returns a new NkConvertConfig.Buffer instance allocated with BufferUtils.

public static NkConvertConfig.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a NkConvertConfig.Buffer instance at the specified memory.

public static NkConvertConfig
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkConvertConfig.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
curve_segment_count()

number of segments used for curves: default to 22

public NkConvertConfig
curve_segment_count(int value)

Sets the specified value to the curve_segment_count field.

public float
global_alpha()

global alpha value

public NkConvertConfig
global_alpha(float value)

Sets the specified value to the global_alpha field.

public int
line_AA()

line anti-aliasing flag can be turned off if you are tight on memory.

public NkConvertConfig
line_AA(int value)

Sets the specified value to the line_AA field.

public static NkConvertConfig
malloc()

Returns a new NkConvertConfig instance allocated with memAlloc.

public static NkConvertConfig.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new NkConvertConfig.Buffer instance allocated with memAlloc.

public static NkConvertConfig
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new NkConvertConfig instance allocated on the specified MemoryStack.

public static NkConvertConfig.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new NkConvertConfig.Buffer instance allocated on the specified MemoryStack.

public static NkConvertConfig
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static NkConvertConfig
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkConvertConfig.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static NkConvertConfig.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
narc_segment_count(long struct)

Unsafe version of arc_segment_count.

public static void
narc_segment_count(long struct, int value)

Unsafe version of arc_segment_count.

public static int
ncircle_segment_count(long struct)

Unsafe version of circle_segment_count.

public static void
ncircle_segment_count(long struct, int value)

Unsafe version of circle_segment_count.

public static int
ncurve_segment_count(long struct)

Unsafe version of curve_segment_count.

public static void
ncurve_segment_count(long struct, int value)

Unsafe version of curve_segment_count.

public static float
nglobal_alpha(long struct)

Unsafe version of global_alpha.

public static void
nglobal_alpha(long struct, float value)

Unsafe version of global_alpha.

public static int
nline_AA(long struct)

Unsafe version of line_AA.

public static void
nline_AA(long struct, int value)

Unsafe version of line_AA.

public static int
nshape_AA(long struct)

Unsafe version of shape_AA.

public static void
nshape_AA(long struct, int value)

Unsafe version of shape_AA.

public static NkDrawNullTexture
ntex_null(long struct)

Unsafe version of tex_null.

public static void
ntex_null(long struct, NkDrawNullTexture value)

Unsafe version of tex_null.

public static long
nvertex_alignment(long struct)

Unsafe version of vertex_alignment.

public static void
nvertex_alignment(long struct, long value)

Unsafe version of vertex_alignment.

public static NkDrawVertexLayoutElement.Buffer
nvertex_layout(long struct, int capacity)

Unsafe version of vertex_layout.

public static void
nvertex_layout(long struct, NkDrawVertexLayoutElement.Buffer value)

Unsafe version of vertex_layout.

public static long
nvertex_size(long struct)

Unsafe version of vertex_size.

public static void
nvertex_size(long struct, long value)

Unsafe version of vertex_size.

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.

public NkConvertConfig

Returns:

this struct
set
(NkConvertConfig
the source struct
src
)

Copies the specified struct data to this struct.

public int
shape_AA()

shape anti-aliasing flag can be turned off if you are tight on memory.

public NkConvertConfig
shape_AA(int value)

Sets the specified value to the shape_AA field.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public NkDrawNullTexture
tex_null()

handle to texture with a white pixel for shape drawing

public NkConvertConfig
tex_null(NkDrawNullTexture value)

Copies the specified NkDrawNullTexture to the tex_null field.

public NkConvertConfig
tex_null(Consumer<NkDrawNullTexture> consumer)

Passes the tex_null field to the specified Consumer.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public long
vertex_alignment()

vertex alignment: Can be optained by NK_ALIGNOF

public NkConvertConfig
vertex_alignment(long value)

Sets the specified value to the vertex_alignment field.

public NkDrawVertexLayoutElement.Buffer

Returns:

describes the vertex output format and packing
vertex_layout
(int
the number of elements in the returned buffer
capacity
)

public NkConvertConfig
public long
vertex_size()

sizeof one vertex for vertex packing

public NkConvertConfig
vertex_size(long value)

Sets the specified value to the vertex_size field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate