struct nk_user_font_glyph {
struct nk_vec2 uv[2];
struct nk_vec2 offset;
float width;
float height;
float xadvance;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkUserFontGlyph.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | UV
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| public static final int | XADVANCE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkUserFontGlyph(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkUserFontGlyph | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkUserFontGlyph. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph. | |
| public static NkUserFontGlyph. | |
| protected NkUserFontGlyph | 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 NkUserFontGlyph | |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph. | create(int
the buffer capacity capacity)Returns a new |
| public static NkUserFontGlyph. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph. | |
| public float | |
| public NkUserFontGlyph | |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkUserFontGlyph | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkUserFontGlyph. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph | |
| public static NkUserFontGlyph. | |
| public static NkUserFontGlyph. | |
| public static float | |
| public static void | |
| public static NkVec2 | |
| public static void | |
| public static NkVec2. | |
| public static NkVec2 | |
| public static void | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public NkVec2 | |
| public NkUserFontGlyph | |
| public NkUserFontGlyph | |
| public NkUserFontGlyph | |
| public NkUserFontGlyph | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public NkVec2. | |
| public NkVec2 | |
| public NkUserFontGlyph | |
| public NkUserFontGlyph | |
| public NkUserFontGlyph | |
| public NkUserFontGlyph | |
| public float | |
| public NkUserFontGlyph | |
| public float | |
| public NkUserFontGlyph |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| HEIGHT | back to summary |
|---|---|
| public static final int HEIGHT The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| UV | back to summary |
|---|---|
| public static final int UV The struct member offsets. | |
| WIDTH | back to summary |
|---|---|
| public static final int WIDTH The struct member offsets. | |
| XADVANCE | back to summary |
|---|---|
| public static final int XADVANCE The struct member offsets. | |
| NkUserFontGlyph | back to summary |
|---|---|
| protected NkUserFontGlyph(long address, ByteBuffer container) | |
| NkUserFontGlyph | back to summary |
|---|---|
| public NkUserFontGlyph(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static NkUserFontGlyph calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkUserFontGlyph. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkUserFontGlyph calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkUserFontGlyph. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFontGlyph callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFontGlyph callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFontGlyph. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFontGlyph. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected NkUserFontGlyph create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkUserFontGlyph create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkUserFontGlyph create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkUserFontGlyph. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkUserFontGlyph. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkUserFontGlyph createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkUserFontGlyph. Like
| |
| height | back to summary |
|---|---|
| public float height() height of the glyph | |
| height | back to summary |
|---|---|
| public NkUserFontGlyph height(float value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static NkUserFontGlyph malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkUserFontGlyph. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkUserFontGlyph malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkUserFontGlyph. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFontGlyph mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFontGlyph mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFontGlyph. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFontGlyph. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| 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 | |
| noffset | back to summary |
|---|---|
| public static NkVec2 noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, NkVec2 value) Unsafe version of | |
| nuv | back to summary |
|---|---|
| public static NkVec2. Unsafe version of | |
| nuv | back to summary |
|---|---|
| public static NkVec2 nuv(long struct, int index) Unsafe version of | |
| nuv | back to summary |
|---|---|
| public static void nuv(long struct, NkVec2. Unsafe version of | |
| nuv | back to summary |
|---|---|
| public static void nuv(long struct, int index, NkVec2 value) Unsafe version of | |
| nwidth | back to summary |
|---|---|
| public static float nwidth(long struct) Unsafe version of | |
| nwidth | back to summary |
|---|---|
| public static void nwidth(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 | |
| offset | back to summary |
|---|---|
| public NkVec2 offset() offset between top left and glyph
| |
| offset | back to summary |
|---|---|
| public NkUserFontGlyph offset(NkVec2 value) | |
| offset | back to summary |
|---|---|
| public NkUserFontGlyph offset(Consumer<NkVec2> consumer) | |
| set | back to summary |
|---|---|
| public NkUserFontGlyph set(NkVec2. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkUserFontGlyph set(NkUserFontGlyph src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| uv | back to summary |
|---|---|
| public NkVec2. texture coordinates
| |
| uv | back to summary |
|---|---|
| public NkVec2 uv(int index) texture coordinates
| |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph uv(NkVec2. Copies the specified | |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph uv(int index, NkVec2 value) Copies the specified | |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph uv(Consumer<NkVec2. | |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph uv(int index, Consumer<NkVec2> consumer) Passes the element at | |
| width | back to summary |
|---|---|
| public float width() width of the glyph | |
| width | back to summary |
|---|---|
| public NkUserFontGlyph width(float value) Sets the specified value to the | |
| xadvance | back to summary |
|---|---|
| public float xadvance() offset to the next glyph | |
| xadvance | back to summary |
|---|---|
| public NkUserFontGlyph xadvance(float value) Sets the specified value to the | |
NkUserFontGlyph structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkUserFontGlyph |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected NkUserFontGlyph | |
| public float | |
| public NkUserFontGlyph. | |
| public NkVec2 | |
| public NkUserFontGlyph. | |
| public NkUserFontGlyph. | |
| protected NkUserFontGlyph. | |
| public NkVec2. | |
| public NkVec2 | |
| public NkUserFontGlyph. | |
| public NkUserFontGlyph. | uv(int index, NkVec2 value)
Copies the specified |
| public NkUserFontGlyph. | |
| public NkUserFontGlyph. | uv(int index, Consumer<NkVec2> consumer)
Passes the element at |
| public float | |
| public NkUserFontGlyph. | |
| public float | |
| public NkUserFontGlyph. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkUserFontGlyph 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) | |
| getElementFactory | back to summary |
|---|---|
| protected NkUserFontGlyph getElementFactory() Implements abstract org.
| |
| height | back to summary |
|---|---|
public float height()
| |
| height | back to summary |
|---|---|
| public NkUserFontGlyph. Sets the specified value to the | |
| offset | back to summary |
|---|---|
public NkVec2 offset()
| |
| offset | back to summary |
|---|---|
| public NkUserFontGlyph. Copies the specified | |
| offset | back to summary |
|---|---|
| public NkUserFontGlyph. Passes the | |
| self | back to summary |
|---|---|
| protected NkUserFontGlyph. Implements abstract org.
| |
| uv | back to summary |
|---|---|
public NkVec2.
| |
| uv | back to summary |
|---|---|
public NkVec2 uv(int index)
| |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph. Copies the specified | |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph. Copies the specified | |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph. Passes the | |
| uv | back to summary |
|---|---|
| public NkUserFontGlyph. Passes the element at | |
| width | back to summary |
|---|---|
public float width()
| |
| width | back to summary |
|---|---|
| public NkUserFontGlyph. Sets the specified value to the | |
| xadvance | back to summary |
|---|---|
public float xadvance()
| |
| xadvance | back to summary |
|---|---|
| public NkUserFontGlyph. Sets the specified value to the | |