struct nk_baked_font {
float height;
float ascent;
float descent;
nk_rune glyph_offset;
nk_rune glyph_count;
nk_rune const * ranges;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkBakedFont.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ASCENT
The struct member offsets. |
| public static final int | DESCENT
The struct member offsets. |
| public static final int | GLYPH_COUNT
The struct member offsets. |
| public static final int | GLYPH_OFFSET
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | RANGES
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkBakedFont(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public NkBakedFont | |
| public static NkBakedFont | |
| public static NkBakedFont. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkBakedFont | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkBakedFont. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected NkBakedFont | 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 NkBakedFont | |
| public static NkBakedFont | |
| public static NkBakedFont. | create(int
the buffer capacity capacity)Returns a new |
| public static NkBakedFont. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkBakedFont | |
| public static NkBakedFont. | |
| public float | |
| public NkBakedFont | |
| public int | |
| public NkBakedFont | |
| public int | |
| public NkBakedFont | |
| public float | |
| public NkBakedFont | |
| public static NkBakedFont | |
| public static NkBakedFont. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkBakedFont | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkBakedFont. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static IntBuffer | |
| public static void | |
| public IntBuffer | Returns: font codepoint ranges as pairs of (from/to) and 0 as last elementthe number of elements in the returned buffer capacity)
|
| public NkBakedFont | |
| public NkBakedFont | |
| public NkBakedFont | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ASCENT | back to summary |
|---|---|
| public static final int ASCENT The struct member offsets. | |
| DESCENT | back to summary |
|---|---|
| public static final int DESCENT The struct member offsets. | |
| GLYPH_COUNT | back to summary |
|---|---|
| public static final int GLYPH_COUNT The struct member offsets. | |
| GLYPH_OFFSET | back to summary |
|---|---|
| public static final int GLYPH_OFFSET The struct member offsets. | |
| HEIGHT | back to summary |
|---|---|
| public static final int HEIGHT The struct member offsets. | |
| RANGES | back to summary |
|---|---|
| public static final int RANGES The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| NkBakedFont | back to summary |
|---|---|
| protected NkBakedFont(long address, ByteBuffer container) | |
| NkBakedFont | back to summary |
|---|---|
| public NkBakedFont(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| ascent | back to summary |
|---|---|
| public float ascent() font glyph ascent | |
| ascent | back to summary |
|---|---|
| public NkBakedFont ascent(float value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static NkBakedFont calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkBakedFont. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkBakedFont calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkBakedFont. Returns a new
| |
| create | back to summary |
|---|---|
| protected NkBakedFont create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkBakedFont create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkBakedFont create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkBakedFont. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkBakedFont. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkBakedFont createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkBakedFont. Like
| |
| descent | back to summary |
|---|---|
| public float descent() font glyph descent | |
| descent | back to summary |
|---|---|
| public NkBakedFont descent(float value) Sets the specified value to the | |
| glyph_count | back to summary |
|---|---|
| public int glyph_count() number of glyphs of this font inside the glyph baking array output
| |
| glyph_count | back to summary |
|---|---|
| public NkBakedFont glyph_count(int value) Sets the specified value to the | |
| glyph_offset | back to summary |
|---|---|
| public int glyph_offset() glyph array offset inside the font glyph baking output array
| |
| glyph_offset | back to summary |
|---|---|
| public NkBakedFont glyph_offset(int value) Sets the specified value to the | |
| height | back to summary |
|---|---|
| public float height() height of the font | |
| height | back to summary |
|---|---|
| public NkBakedFont height(float value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static NkBakedFont malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkBakedFont. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkBakedFont malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkBakedFont. Returns a new
| |
| nascent | back to summary |
|---|---|
| public static float nascent(long struct) Unsafe version of | |
| nascent | back to summary |
|---|---|
| public static void nascent(long struct, float value) Unsafe version of | |
| ndescent | back to summary |
|---|---|
| public static float ndescent(long struct) Unsafe version of | |
| ndescent | back to summary |
|---|---|
| public static void ndescent(long struct, float value) Unsafe version of | |
| nglyph_count | back to summary |
|---|---|
| public static int nglyph_count(long struct) Unsafe version of | |
| nglyph_count | back to summary |
|---|---|
| public static void nglyph_count(long struct, int value) Unsafe version of | |
| nglyph_offset | back to summary |
|---|---|
| public static int nglyph_offset(long struct) Unsafe version of | |
| nglyph_offset | back to summary |
|---|---|
| public static void nglyph_offset(long struct, int value) Unsafe version of | |
| nheight | back to summary |
|---|---|
| public static float nheight(long struct) Unsafe version of | |
| nheight | back to summary |
|---|---|
| public static void nheight(long struct, float value) Unsafe version of | |
| nranges | back to summary |
|---|---|
| public static IntBuffer nranges(long struct, int capacity) Unsafe version of
| |
| nranges | back to summary |
|---|---|
| public static void nranges(long struct, IntBuffer value) Unsafe version of | |
| ranges | back to summary |
|---|---|
public IntBuffer ranges(int capacity)
| |
| ranges | back to summary |
|---|---|
| public NkBakedFont ranges(IntBuffer value) Sets the address of the specified | |
| set | back to summary |
|---|---|
| public NkBakedFont set(float height, float ascent, float descent, int glyph_offset, int glyph_count, IntBuffer ranges) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkBakedFont set(NkBakedFont src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
NkBakedFont structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkBakedFont |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public NkBakedFont. | |
| public float | |
| public NkBakedFont. | |
| protected NkBakedFont | |
| public int | |
| public NkBakedFont. | |
| public int | |
| public NkBakedFont. | |
| public float | |
| public NkBakedFont. | |
| public IntBuffer | |
| public NkBakedFont. | |
| protected NkBakedFont. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkBakedFont 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) | |
| ascent | back to summary |
|---|---|
public float ascent()
| |
| ascent | back to summary |
|---|---|
| public NkBakedFont. Sets the specified value to the | |
| descent | back to summary |
|---|---|
public float descent()
| |
| descent | back to summary |
|---|---|
| public NkBakedFont. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected NkBakedFont getElementFactory() Implements abstract org.
| |
| glyph_count | back to summary |
|---|---|
public int glyph_count()
| |
| glyph_count | back to summary |
|---|---|
| public NkBakedFont. Sets the specified value to the | |
| glyph_offset | back to summary |
|---|---|
public int glyph_offset()
| |
| glyph_offset | back to summary |
|---|---|
| public NkBakedFont. Sets the specified value to the | |
| height | back to summary |
|---|---|
public float height()
| |
| height | back to summary |
|---|---|
| public NkBakedFont. Sets the specified value to the | |
| ranges | back to summary |
|---|---|
public IntBuffer ranges(int capacity)
| |
| ranges | back to summary |
|---|---|
| public NkBakedFont. Sets the address of the specified | |
| self | back to summary |
|---|---|
| protected NkBakedFont. Implements abstract org.
| |