struct nk_font_glyph {
nk_rune codepoint;
float xadvance;
float x0;
float y0;
float x1;
float y1;
float w;
float h;
float u0;
float v0;
float u1;
float v1;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkFontGlyph.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CODEPOINT
The struct member offsets. |
| public static final int | H
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | U0
The struct member offsets. |
| public static final int | U1
The struct member offsets. |
| public static final int | V0
The struct member offsets. |
| public static final int | V1
The struct member offsets. |
| public static final int | W
The struct member offsets. |
| public static final int | X0
The struct member offsets. |
| public static final int | X1
The struct member offsets. |
| public static final int | XADVANCE
The struct member offsets. |
| public static final int | Y0
The struct member offsets. |
| public static final int | Y1
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkFontGlyph(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static NkFontGlyph | |
| public static NkFontGlyph. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkFontGlyph | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkFontGlyph. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public NkFontGlyph | |
| protected NkFontGlyph | 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 NkFontGlyph | |
| public static NkFontGlyph | |
| public static NkFontGlyph. | create(int
the buffer capacity capacity)Returns a new |
| public static NkFontGlyph. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkFontGlyph | |
| public static NkFontGlyph. | |
| public float | |
| public NkFontGlyph | |
| public static NkFontGlyph | |
| public static NkFontGlyph. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkFontGlyph | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkFontGlyph. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public NkFontGlyph | set(int codepoint, float xadvance, float x0, float y0, float x1, float y1, float w, float h, float u0, float v0, float u1, float v1)
Initializes this struct with the specified values. |
| public NkFontGlyph | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph | |
| public float | |
| public NkFontGlyph |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CODEPOINT | back to summary |
|---|---|
| public static final int CODEPOINT The struct member offsets. | |
| H | back to summary |
|---|---|
| public static final int H The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| U0 | back to summary |
|---|---|
| public static final int U0 The struct member offsets. | |
| U1 | back to summary |
|---|---|
| public static final int U1 The struct member offsets. | |
| V0 | back to summary |
|---|---|
| public static final int V0 The struct member offsets. | |
| V1 | back to summary |
|---|---|
| public static final int V1 The struct member offsets. | |
| W | back to summary |
|---|---|
| public static final int W The struct member offsets. | |
| X0 | back to summary |
|---|---|
| public static final int X0 The struct member offsets. | |
| X1 | back to summary |
|---|---|
| public static final int X1 The struct member offsets. | |
| XADVANCE | back to summary |
|---|---|
| public static final int XADVANCE The struct member offsets. | |
| Y0 | back to summary |
|---|---|
| public static final int Y0 The struct member offsets. | |
| Y1 | back to summary |
|---|---|
| public static final int Y1 The struct member offsets. | |
| NkFontGlyph | back to summary |
|---|---|
| protected NkFontGlyph(long address, ByteBuffer container) | |
| NkFontGlyph | back to summary |
|---|---|
| public NkFontGlyph(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static NkFontGlyph calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkFontGlyph. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkFontGlyph calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkFontGlyph. Returns a new
| |
| codepoint | back to summary |
|---|---|
public int codepoint()
| |
| codepoint | back to summary |
|---|---|
| public NkFontGlyph codepoint(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected NkFontGlyph create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkFontGlyph create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkFontGlyph create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkFontGlyph. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkFontGlyph. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkFontGlyph createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkFontGlyph. Like
| |
| h | back to summary |
|---|---|
public float h()
| |
| h | back to summary |
|---|---|
| public NkFontGlyph h(float value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static NkFontGlyph malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkFontGlyph. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkFontGlyph malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkFontGlyph. Returns a new
| |
| ncodepoint | back to summary |
|---|---|
| public static int ncodepoint(long struct) Unsafe version of | |
| ncodepoint | back to summary |
|---|---|
| public static void ncodepoint(long struct, int value) Unsafe version of | |
| nh | back to summary |
|---|---|
| public static float nh(long struct) Unsafe version of | |
| nh | back to summary |
|---|---|
| public static void nh(long struct, float value) Unsafe version of | |
| nu0 | back to summary |
|---|---|
| public static float nu0(long struct) Unsafe version of | |
| nu0 | back to summary |
|---|---|
| public static void nu0(long struct, float value) Unsafe version of | |
| nu1 | back to summary |
|---|---|
| public static float nu1(long struct) Unsafe version of | |
| nu1 | back to summary |
|---|---|
| public static void nu1(long struct, float value) Unsafe version of | |
| nv0 | back to summary |
|---|---|
| public static float nv0(long struct) Unsafe version of | |
| nv0 | back to summary |
|---|---|
| public static void nv0(long struct, float value) Unsafe version of | |
| nv1 | back to summary |
|---|---|
| public static float nv1(long struct) Unsafe version of | |
| nv1 | back to summary |
|---|---|
| public static void nv1(long struct, float value) Unsafe version of | |
| nw | back to summary |
|---|---|
| public static float nw(long struct) Unsafe version of | |
| nw | back to summary |
|---|---|
| public static void nw(long struct, float value) Unsafe version of | |
| nx0 | back to summary |
|---|---|
| public static float nx0(long struct) Unsafe version of | |
| nx0 | back to summary |
|---|---|
| public static void nx0(long struct, float value) Unsafe version of | |
| nx1 | back to summary |
|---|---|
| public static float nx1(long struct) Unsafe version of | |
| nx1 | back to summary |
|---|---|
| public static void nx1(long struct, float value) Unsafe version of | |
| nxadvance | back to summary |
|---|---|
| public static float nxadvance(long struct) Unsafe version of | |
| nxadvance | back to summary |
|---|---|
| public static void nxadvance(long struct, float value) Unsafe version of | |
| ny0 | back to summary |
|---|---|
| public static float ny0(long struct) Unsafe version of | |
| ny0 | back to summary |
|---|---|
| public static void ny0(long struct, float value) Unsafe version of | |
| ny1 | back to summary |
|---|---|
| public static float ny1(long struct) Unsafe version of | |
| ny1 | back to summary |
|---|---|
| public static void ny1(long struct, float value) Unsafe version of | |
| set | back to summary |
|---|---|
| public NkFontGlyph set(int codepoint, float xadvance, float x0, float y0, float x1, float y1, float w, float h, float u0, float v0, float u1, float v1) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkFontGlyph set(NkFontGlyph src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| u0 | back to summary |
|---|---|
public float u0()
| |
| u0 | back to summary |
|---|---|
| public NkFontGlyph u0(float value) Sets the specified value to the | |
| u1 | back to summary |
|---|---|
public float u1()
| |
| u1 | back to summary |
|---|---|
| public NkFontGlyph u1(float value) Sets the specified value to the | |
| v0 | back to summary |
|---|---|
public float v0()
| |
| v0 | back to summary |
|---|---|
| public NkFontGlyph v0(float value) Sets the specified value to the | |
| v1 | back to summary |
|---|---|
public float v1()
| |
| v1 | back to summary |
|---|---|
| public NkFontGlyph v1(float value) Sets the specified value to the | |
| w | back to summary |
|---|---|
public float w()
| |
| w | back to summary |
|---|---|
| public NkFontGlyph w(float value) Sets the specified value to the | |
| x0 | back to summary |
|---|---|
public float x0()
| |
| x0 | back to summary |
|---|---|
| public NkFontGlyph x0(float value) Sets the specified value to the | |
| x1 | back to summary |
|---|---|
public float x1()
| |
| x1 | back to summary |
|---|---|
| public NkFontGlyph x1(float value) Sets the specified value to the | |
| xadvance | back to summary |
|---|---|
public float xadvance()
| |
| xadvance | back to summary |
|---|---|
| public NkFontGlyph xadvance(float value) Sets the specified value to the | |
| y0 | back to summary |
|---|---|
public float y0()
| |
| y0 | back to summary |
|---|---|
| public NkFontGlyph y0(float value) Sets the specified value to the | |
| y1 | back to summary |
|---|---|
public float y1()
| |
| y1 | back to summary |
|---|---|
| public NkFontGlyph y1(float value) Sets the specified value to the | |
NkFontGlyph structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkFontGlyph |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public NkFontGlyph. | |
| protected NkFontGlyph | |
| public float | |
| public NkFontGlyph. | |
| protected NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. | |
| public float | |
| public NkFontGlyph. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkFontGlyph 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) | |
| codepoint | back to summary |
|---|---|
public int codepoint()
| |
| codepoint | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected NkFontGlyph getElementFactory() Implements abstract org.
| |
| h | back to summary |
|---|---|
public float h()
| |
| h | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected NkFontGlyph. Implements abstract org.
| |
| u0 | back to summary |
|---|---|
public float u0()
| |
| u0 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| u1 | back to summary |
|---|---|
public float u1()
| |
| u1 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| v0 | back to summary |
|---|---|
public float v0()
| |
| v0 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| v1 | back to summary |
|---|---|
public float v1()
| |
| v1 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| w | back to summary |
|---|---|
public float w()
| |
| w | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| x0 | back to summary |
|---|---|
public float x0()
| |
| x0 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| x1 | back to summary |
|---|---|
public float x1()
| |
| x1 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| xadvance | back to summary |
|---|---|
public float xadvance()
| |
| xadvance | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| y0 | back to summary |
|---|---|
public float y0()
| |
| y0 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |
| y1 | back to summary |
|---|---|
public float y1()
| |
| y1 | back to summary |
|---|---|
| public NkFontGlyph. Sets the specified value to the | |