Class NkUserFont

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class NkUserFont
    extends Struct
    implements NativeResource

    Member documentation

    • userdata – user provided font handle
    • height – max height of the font
    • width – font string width in pixel callback
    • query – font glyph callback to query drawing info
    • texture – texture handle to the used font atlas or texture

    Layout

    
     struct nk_user_font {
         nk_handle userdata;
         float height;
         nk_text_width_f width;
         nk_query_font_glyph_f query;
         nk_handle texture;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • USERDATA, HEIGHT, WIDTH, QUERY, TEXTURE

        The struct member offsets.
    • Constructor Detail

      • NkUserFont

        public NkUserFont​(java.nio.ByteBuffer container)
        Creates a NkUserFont instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.