struct nk_user_font {
nk_handle userdata;
float height;
nk_text_width_f width;
nk_query_font_glyph_f query;
nk_handle texture;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkUserFont.
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 | QUERY
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TEXTURE
The struct member offsets. |
| public static final int | USERDATA
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkUserFont(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static NkUserFont | |
| public static NkUserFont. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkUserFont | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkUserFont. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkUserFont | |
| public static NkUserFont | |
| public static NkUserFont. | |
| public static NkUserFont. | |
| protected NkUserFont | 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 NkUserFont | |
| public static NkUserFont | |
| public static NkUserFont. | create(int
the buffer capacity capacity)Returns a new |
| public static NkUserFont. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkUserFont | |
| public static NkUserFont. | |
| public float | |
| public NkUserFont | |
| public static NkUserFont | |
| public static NkUserFont. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkUserFont | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkUserFont. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkUserFont | |
| public static NkUserFont | |
| public static NkUserFont. | |
| public static NkUserFont. | |
| public static float | |
| public static void | |
| public static NkQueryFontGlyphCallback | |
| public static void | |
| public static NkHandle | |
| public static void | |
| public static NkHandle | |
| public static void | |
| public static NkTextWidthCallback | |
| public static void | |
| public NkQueryFontGlyphCallback | |
| public NkUserFont | |
| public NkUserFont | set(NkHandle userdata, float height, NkTextWidthCallbackI width, NkQueryFontGlyphCallbackI query, NkHandle texture)
Initializes this struct with the specified values. |
| public NkUserFont | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public NkHandle | |
| public NkUserFont | |
| public NkUserFont | |
| public NkHandle | |
| public NkUserFont | |
| public NkUserFont | |
| public NkTextWidthCallback | |
| public NkUserFont |
| 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. | |
| QUERY | back to summary |
|---|---|
| public static final int QUERY 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. | |
| USERDATA | back to summary |
|---|---|
| public static final int USERDATA The struct member offsets. | |
| WIDTH | back to summary |
|---|---|
| public static final int WIDTH The struct member offsets. | |
| NkUserFont | back to summary |
|---|---|
| protected NkUserFont(long address, ByteBuffer container) | |
| NkUserFont | back to summary |
|---|---|
| public NkUserFont(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static NkUserFont calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkUserFont. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkUserFont calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkUserFont. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFont callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFont callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFont. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkUserFont. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected NkUserFont create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkUserFont create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkUserFont create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkUserFont. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkUserFont. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkUserFont createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkUserFont. Like
| |
| height | back to summary |
|---|---|
| public float height() max height of the font | |
| height | back to summary |
|---|---|
| public NkUserFont height(float value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static NkUserFont malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkUserFont. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkUserFont malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkUserFont. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFont mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFont mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFont. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkUserFont. 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 | |
| nquery | back to summary |
|---|---|
| public static NkQueryFontGlyphCallback nquery(long struct) Unsafe version of
| |
| nquery | back to summary |
|---|---|
| public static void nquery(long struct, NkQueryFontGlyphCallbackI 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 | |
| nuserdata | back to summary |
|---|---|
| public static NkHandle nuserdata(long struct) Unsafe version of | |
| nuserdata | back to summary |
|---|---|
| public static void nuserdata(long struct, NkHandle value) Unsafe version of | |
| nwidth | back to summary |
|---|---|
| public static NkTextWidthCallback nwidth(long struct) Unsafe version of
| |
| nwidth | back to summary |
|---|---|
| public static void nwidth(long struct, NkTextWidthCallbackI value) Unsafe version of | |
| query | back to summary |
|---|---|
| public NkQueryFontGlyphCallback query() font glyph callback to query drawing info
| |
| query | back to summary |
|---|---|
| public NkUserFont query(NkQueryFontGlyphCallbackI value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public NkUserFont set(NkHandle userdata, float height, NkTextWidthCallbackI width, NkQueryFontGlyphCallbackI query, NkHandle texture) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkUserFont set(NkUserFont 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 handle to the used font atlas or texture
| |
| texture | back to summary |
|---|---|
| public NkUserFont texture(NkHandle value) | |
| texture | back to summary |
|---|---|
| public NkUserFont texture(Consumer<NkHandle> consumer) | |
| userdata | back to summary |
|---|---|
| public NkHandle userdata() user provided font handle
| |
| userdata | back to summary |
|---|---|
| public NkUserFont userdata(NkHandle value) | |
| userdata | back to summary |
|---|---|
| public NkUserFont userdata(Consumer<NkHandle> consumer) | |
| width | back to summary |
|---|---|
| public NkTextWidthCallback width() font string width in pixel callback
| |
| width | back to summary |
|---|---|
| public NkUserFont width(NkTextWidthCallbackI value) Sets the specified value to the | |
NkUserFont structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkUserFont |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected NkUserFont | |
| public float | |
| public NkUserFont. | |
| public NkQueryFontGlyphCallback | |
| public NkUserFont. | |
| protected NkUserFont. | |
| public NkHandle | |
| public NkUserFont. | |
| public NkUserFont. | |
| public NkHandle | |
| public NkUserFont. | |
| public NkUserFont. | userdata(Consumer<NkHandle> consumer)
Passes the |
| public NkTextWidthCallback | |
| public NkUserFont. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkUserFont 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 NkUserFont getElementFactory() Implements abstract org.
| |
| height | back to summary |
|---|---|
public float height()
| |
| height | back to summary |
|---|---|
| public NkUserFont. Sets the specified value to the | |
| query | back to summary |
|---|---|
public NkQueryFontGlyphCallback query()
| |
| query | back to summary |
|---|---|
| public NkUserFont. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected NkUserFont. Implements abstract org.
| |
| texture | back to summary |
|---|---|
public NkHandle texture()
| |
| texture | back to summary |
|---|---|
| public NkUserFont. Copies the specified | |
| texture | back to summary |
|---|---|
| public NkUserFont. Passes the | |
| userdata | back to summary |
|---|---|
public NkHandle userdata()
| |
| userdata | back to summary |
|---|---|
| public NkUserFont. Copies the specified | |
| userdata | back to summary |
|---|---|
| public NkUserFont. Passes the | |
| width | back to summary |
|---|---|
public NkTextWidthCallback width()
| |
| width | back to summary |
|---|---|
| public NkUserFont. Sets the specified value to the | |