struct nk_font {
struct nk_font * next;
struct nk_user_font handle;
struct nk_baked_font info;
float scale;
struct nk_font_glyph * glyphs;
struct nk_font_glyph const * fallback;
nk_rune fallback_codepoint;
nk_handle texture;
struct nk_font_config * config;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkFont.
An array of |
| Modifier and Type | Field 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 | FALLBACK
The struct member offsets. |
| public static final int | FALLBACK_CODEPOINT
The struct member offsets. |
| public static final int | GLYPHS
The struct member offsets. |
| public static final int | HANDLE
The struct member offsets. |
| public static final int | INFO
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SCALE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TEXTURE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkFont(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static NkFont | |
| public static NkFont. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkFont | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkFont. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public NkFontConfig | |
| public NkFont | |
| protected NkFont | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkFont | |
| public static NkFont | |
| public static NkFont. | create(int
the buffer capacity capacity)Returns a new |
| public static NkFont. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkFont | |
| public static NkFont. | |
| public NkFontGlyph | |
| public NkFont | |
| public int | |
| public NkFont | |
| public NkFontGlyph | |
| public NkFont | |
| public NkUserFont | |
| public NkFont | |
| public NkFont | |
| public NkBakedFont | |
| public NkFont | |
| public NkFont | |
| public static NkFont | |
| public static NkFont. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkFont | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkFont. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkFontConfig | |
| public static void | |
| public NkFont | |
| public NkFont | |
| public static NkFontGlyph | |
| public static void | |
| public static int | |
| public static void | |
| public static NkFontGlyph | |
| public static void | |
| public static NkUserFont | |
| public static void | |
| public static NkBakedFont | |
| public static void | |
| public static NkFont | |
| public static void | |
| public static float | |
| public static void | |
| public static NkHandle | |
| public static void | |
| public float | |
| public NkFont | |
| public NkFont | set(NkFont next, NkUserFont handle, NkBakedFont info, float scale, NkFontGlyph glyphs, NkFontGlyph fallback, int fallback_codepoint, NkHandle texture, NkFontConfig config)
Initializes this struct with the specified values. |
| public NkFont | |
| public int | |
| public NkHandle | |
| public NkFont | |
| public NkFont |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CONFIG | back to summary |
|---|---|
| public static final int CONFIG The struct member offsets. | |
| FALLBACK | back to summary |
|---|---|
| public static final int FALLBACK The struct member offsets. | |
| FALLBACK_CODEPOINT | back to summary |
|---|---|
| public static final int FALLBACK_CODEPOINT The struct member offsets. | |
| GLYPHS | back to summary |
|---|---|
| public static final int GLYPHS The struct member offsets. | |
| HANDLE | back to summary |
|---|---|
| public static final int HANDLE The struct member offsets. | |
| INFO | back to summary |
|---|---|
| public static final int INFO The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SCALE | back to summary |
|---|---|
| public static final int SCALE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TEXTURE | back to summary |
|---|---|
| public static final int TEXTURE The struct member offsets. | |
| NkFont | back to summary |
|---|---|
| protected NkFont(long address, ByteBuffer container) | |
| NkFont | back to summary |
|---|---|
| public NkFont(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static NkFont calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkFont. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkFont calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkFont. Returns a new
| |
| config | back to summary |
|---|---|
public NkFontConfig config()
| |
| config | back to summary |
|---|---|
| public NkFont config(NkFontConfig value) Sets the address of the specified | |
| create | back to summary |
|---|---|
| protected NkFont create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkFont create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkFont create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkFont. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkFont. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkFont createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkFont. Like
| |
| fallback | back to summary |
|---|---|
public NkFontGlyph fallback()
| |
| fallback | back to summary |
|---|---|
| public NkFont fallback(NkFontGlyph value) Sets the address of the specified | |
| fallback_codepoint | back to summary |
|---|---|
public int fallback_codepoint()
| |
| fallback_codepoint | back to summary |
|---|---|
| public NkFont fallback_codepoint(int value) Sets the specified value to the | |
| glyphs | back to summary |
|---|---|
public NkFontGlyph glyphs()
| |
| glyphs | back to summary |
|---|---|
| public NkFont glyphs(NkFontGlyph value) Sets the address of the specified | |
| handle | back to summary |
|---|---|
public NkUserFont handle()
| |
| handle | back to summary |
|---|---|
| public NkFont handle(NkUserFont value) Copies the specified | |
| handle | back to summary |
|---|---|
| public NkFont handle(Consumer<NkUserFont> consumer) Passes the | |
| info | back to summary |
|---|---|
public NkBakedFont info()
| |
| info | back to summary |
|---|---|
| public NkFont info(NkBakedFont value) Copies the specified | |
| info | back to summary |
|---|---|
| public NkFont info(Consumer<NkBakedFont> consumer) Passes the | |
| malloc | back to summary |
|---|---|
| public static NkFont malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkFont. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkFont malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkFont. Returns a new
| |
| nconfig | back to summary |
|---|---|
| public static NkFontConfig nconfig(long struct) Unsafe version of
| |
| nconfig | back to summary |
|---|---|
| public static void nconfig(long struct, NkFontConfig value) Unsafe version of | |
| next | back to summary |
|---|---|
public NkFont next()
| |
| next | back to summary |
|---|---|
| public NkFont next(NkFont value) Sets the address of the specified | |
| nfallback | back to summary |
|---|---|
| public static NkFontGlyph nfallback(long struct) Unsafe version of
| |
| nfallback | back to summary |
|---|---|
| public static void nfallback(long struct, NkFontGlyph value) Unsafe version of | |
| nfallback_codepoint | back to summary |
|---|---|
| public static int nfallback_codepoint(long struct) Unsafe version of | |
| nfallback_codepoint | back to summary |
|---|---|
| public static void nfallback_codepoint(long struct, int value) Unsafe version of | |
| nglyphs | back to summary |
|---|---|
| public static NkFontGlyph nglyphs(long struct) Unsafe version of
| |
| nglyphs | back to summary |
|---|---|
| public static void nglyphs(long struct, NkFontGlyph value) Unsafe version of | |
| nhandle | back to summary |
|---|---|
| public static NkUserFont nhandle(long struct) Unsafe version of | |
| nhandle | back to summary |
|---|---|
| public static void nhandle(long struct, NkUserFont value) Unsafe version of | |
| ninfo | back to summary |
|---|---|
| public static NkBakedFont ninfo(long struct) Unsafe version of | |
| ninfo | back to summary |
|---|---|
| public static void ninfo(long struct, NkBakedFont value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static NkFont nnext(long struct) Unsafe version of
| |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, NkFont value) Unsafe version of | |
| nscale | back to summary |
|---|---|
| public static float nscale(long struct) Unsafe version of | |
| nscale | back to summary |
|---|---|
| public static void nscale(long struct, float value) Unsafe version of | |
| ntexture | back to summary |
|---|---|
| public static NkHandle ntexture(long struct) Unsafe version of | |
| ntexture | back to summary |
|---|---|
| public static void ntexture(long struct, NkHandle value) Unsafe version of | |
| scale | back to summary |
|---|---|
public float scale()
| |
| scale | back to summary |
|---|---|
| public NkFont scale(float value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public NkFont set(NkFont next, NkUserFont handle, NkBakedFont info, float scale, NkFontGlyph glyphs, NkFontGlyph fallback, int fallback_codepoint, NkHandle texture, NkFontConfig config) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkFont set(NkFont src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| texture | back to summary |
|---|---|
public NkHandle texture()
| |
| texture | back to summary |
|---|---|
| public NkFont texture(NkHandle value) Copies the specified | |
| texture | back to summary |
|---|---|
| public NkFont texture(Consumer<NkHandle> consumer) Passes the | |
NkFont structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkFont |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public NkFontConfig | |
| public NkFont. | |
| public NkFontGlyph | |
| public NkFont. | |
| public int | |
| public NkFont. | |
| protected NkFont | |
| public NkFontGlyph | |
| public NkFont. | |
| public NkUserFont | |
| public NkFont. | |
| public NkFont. | |
| public NkBakedFont | |
| public NkFont. | |
| public NkFont. | |
| public NkFont | |
| public NkFont. | |
| public float | |
| public NkFont. | |
| protected NkFont. | |
| public NkHandle | |
| public NkFont. | |
| public NkFont. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkFont ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| config | back to summary |
|---|---|
public NkFontConfig config()
| |
| config | back to summary |
|---|---|
| public NkFont. Sets the address of the specified | |
| fallback | back to summary |
|---|---|
public NkFontGlyph fallback()
| |
| fallback | back to summary |
|---|---|
| public NkFont. Sets the address of the specified | |
| fallback_codepoint | back to summary |
|---|---|
public int fallback_codepoint()
| |
| fallback_codepoint | back to summary |
|---|---|
| public NkFont. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected NkFont getElementFactory() Implements abstract org.
| |
| glyphs | back to summary |
|---|---|
public NkFontGlyph glyphs()
| |
| glyphs | back to summary |
|---|---|
| public NkFont. Sets the address of the specified | |
| handle | back to summary |
|---|---|
public NkUserFont handle()
| |
| handle | back to summary |
|---|---|
| public NkFont. Copies the specified | |
| handle | back to summary |
|---|---|
| public NkFont. Passes the | |
| info | back to summary |
|---|---|
public NkBakedFont info()
| |
| info | back to summary |
|---|---|
| public NkFont. Copies the specified | |
| info | back to summary |
|---|---|
| public NkFont. Passes the | |
| next | back to summary |
|---|---|
public NkFont next()
| |
| next | back to summary |
|---|---|
| public NkFont. Sets the address of the specified | |
| scale | back to summary |
|---|---|
public float scale()
| |
| scale | back to summary |
|---|---|
| public NkFont. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected NkFont. Implements abstract org.
| |
| texture | back to summary |
|---|---|
public NkHandle texture()
| |
| texture | back to summary |
|---|---|
| public NkFont. Copies the specified | |
| texture | back to summary |
|---|---|
| public NkFont. Passes the | |