Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkFontAtlas

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

Layout


struct nk_font_atlas {
    void * pixel;
    int tex_width;
    int tex_height;
    struct nk_allocator permanent;
    struct nk_allocator temporary;
    struct nk_recti custom;
    struct nk_cursor cursors[7];
    int glyph_count;
    struct nk_font_glyph * glyphs;
    struct nk_font * default_font;
    struct nk_font * fonts;
    struct nk_font_config * config;
    int font_num;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkFontAtlas.Buffer

An array of NkFontAtlas structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CONFIG

The struct member offsets.

public static final int
CURSORS

The struct member offsets.

public static final int
CUSTOM

The struct member offsets.

public static final int
DEFAULT_FONT

The struct member offsets.

public static final int
FONT_NUM

The struct member offsets.

public static final int
FONTS

The struct member offsets.

public static final int
GLYPH_COUNT

The struct member offsets.

public static final int
GLYPHS

The struct member offsets.

public static final int
PERMANENT

The struct member offsets.

public static final int
PIXEL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEMPORARY

The struct member offsets.

public static final int
TEX_HEIGHT

The struct member offsets.

public static final int
TEX_WIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkFontAtlas(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static NkFontAtlas
calloc()

Returns a new NkFontAtlas instance allocated with memCalloc.

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

Returns a new NkFontAtlas.Buffer instance allocated with memCalloc.

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

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

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

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

public NkFontConfig

Returns:

a NkFontConfig view of the struct pointed to by the config field.
config
()

public NkFontAtlas
config(NkFontConfig value)

Sets the address of the specified NkFontConfig to the config field.

protected NkFontAtlas
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 NkFontAtlas
create()

Returns a new NkFontAtlas instance allocated with BufferUtils.

public static NkFontAtlas
create(long address)

Returns a new NkFontAtlas instance for the specified memory address.

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

Returns a new NkFontAtlas.Buffer instance allocated with BufferUtils.

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

Create a NkFontAtlas.Buffer instance at the specified memory.

public static NkFontAtlas
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkCursor.Buffer

Returns:

a NkCursor.Buffer view of the cursors field.
cursors
()

public NkCursor

Returns:

a NkCursor view of the struct at the specified index of the cursors field.
cursors
(int index)

public NkFontAtlas
cursors(NkCursor.Buffer value)

Copies the specified NkCursor.Buffer to the cursors field.

public NkFontAtlas
cursors(int index, NkCursor value)

Copies the specified NkCursor at the specified index of the cursors field.

public NkFontAtlas
cursors(Consumer<NkCursor.Buffer> consumer)

Passes the cursors field to the specified Consumer.

public NkFontAtlas
cursors(int index, Consumer<NkCursor> consumer)

Passes the element at index of the cursors field to the specified Consumer.

public NkRecti

Returns:

a NkRecti view of the custom field.
custom
()

public NkFontAtlas
custom(NkRecti value)

Copies the specified NkRecti to the custom field.

public NkFontAtlas
custom(Consumer<NkRecti> consumer)

Passes the custom field to the specified Consumer.

public NkFont

Returns:

a NkFont view of the struct pointed to by the default_font field.
default_font
()

public NkFontAtlas
default_font(NkFont value)

Sets the address of the specified NkFont to the default_font field.

public int

Returns:

the value of the font_num field.
font_num
()

public NkFontAtlas
font_num(int value)

Sets the specified value to the font_num field.

public NkFont

Returns:

a NkFont view of the struct pointed to by the fonts field.
fonts
()

public NkFontAtlas
fonts(NkFont value)

Sets the address of the specified NkFont to the fonts field.

public int

Returns:

the value of the glyph_count field.
glyph_count
()

public NkFontAtlas
glyph_count(int value)

Sets the specified value to the glyph_count field.

public NkFontGlyph.Buffer

Returns:

a NkFontGlyph.Buffer view of the struct array pointed to by the glyphs field.
glyphs
()

public NkFontAtlas
glyphs(NkFontGlyph.Buffer value)

Sets the address of the specified NkFontGlyph.Buffer to the glyphs field.

public static NkFontAtlas
malloc()

Returns a new NkFontAtlas instance allocated with memAlloc.

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

Returns a new NkFontAtlas.Buffer instance allocated with memAlloc.

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

Returns a new NkFontAtlas instance allocated on the specified MemoryStack.

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

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

public static NkFontConfig
nconfig(long struct)

Unsafe version of config.

public static void
nconfig(long struct, NkFontConfig value)

Unsafe version of config.

public static NkCursor.Buffer
ncursors(long struct)

Unsafe version of cursors.

public static NkCursor
ncursors(long struct, int index)

Unsafe version of cursors.

public static void
ncursors(long struct, NkCursor.Buffer value)

Unsafe version of cursors.

public static void
ncursors(long struct, int index, NkCursor value)

Unsafe version of cursors.

public static NkRecti
ncustom(long struct)

Unsafe version of custom.

public static void
ncustom(long struct, NkRecti value)

Unsafe version of custom.

public static NkFont
ndefault_font(long struct)

Unsafe version of default_font.

public static void
ndefault_font(long struct, NkFont value)

Unsafe version of default_font.

public static int
nfont_num(long struct)

Unsafe version of font_num.

public static void
nfont_num(long struct, int value)

Unsafe version of font_num.

public static NkFont
nfonts(long struct)

Unsafe version of fonts.

public static void
nfonts(long struct, NkFont value)

Unsafe version of fonts.

public static int
nglyph_count(long struct)

Unsafe version of glyph_count.

public static void
nglyph_count(long struct, int value)

Sets the specified value to the glyph_count field of the specified struct.

public static NkFontGlyph.Buffer
nglyphs(long struct)

Unsafe version of glyphs.

public static void
nglyphs(long struct, NkFontGlyph.Buffer value)

Unsafe version of glyphs.

public static NkAllocator
npermanent(long struct)

Unsafe version of permanent.

public static void
npermanent(long struct, NkAllocator value)

Unsafe version of permanent.

public static ByteBuffer
npixel(long struct)

Unsafe version of pixel.

public static void
npixel(long struct, ByteBuffer value)

Unsafe version of pixel.

public static NkAllocator
ntemporary(long struct)

Unsafe version of temporary.

public static void
ntemporary(long struct, NkAllocator value)

Unsafe version of temporary.

public static int
ntex_height(long struct)

Unsafe version of tex_height.

public static void
ntex_height(long struct, int value)

Sets the specified value to the tex_height field of the specified struct.

public static int
ntex_width(long struct)

Unsafe version of tex_width.

public static void
ntex_width(long struct, int value)

Sets the specified value to the tex_width field of the specified struct.

public NkAllocator

Returns:

a NkAllocator view of the permanent field.
permanent
()

public NkFontAtlas
permanent(NkAllocator value)

Copies the specified NkAllocator to the permanent field.

public NkFontAtlas
permanent(Consumer<NkAllocator> consumer)

Passes the permanent field to the specified Consumer.

public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the pixel field.
pixel
()

public NkFontAtlas
pixel(ByteBuffer value)

Sets the address of the specified ByteBuffer to the pixel field.

public NkFontAtlas
set(ByteBuffer pixel, int tex_width, int tex_height, NkAllocator permanent, NkAllocator temporary, NkRecti custom, NkCursor.Buffer cursors, int glyph_count, NkFontGlyph.Buffer glyphs, NkFont default_font, NkFont fonts, NkFontConfig config, int font_num)

Initializes this struct with the specified values.

public NkFontAtlas

Returns:

this struct
set
(NkFontAtlas
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

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

Returns sizeof(struct).
public NkAllocator

Returns:

a NkAllocator view of the temporary field.
temporary
()

public NkFontAtlas
temporary(NkAllocator value)

Copies the specified NkAllocator to the temporary field.

public NkFontAtlas
temporary(Consumer<NkAllocator> consumer)

Passes the temporary field to the specified Consumer.

public int

Returns:

the value of the tex_height field.
tex_height
()

public NkFontAtlas
tex_height(int value)

Sets the specified value to the tex_height field.

public int

Returns:

the value of the tex_width field.
tex_width
()

public NkFontAtlas
tex_width(int value)

Sets the specified value to the tex_width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate