Class NkUserFont

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkUserFont extends Struct<NkUserFont> implements NativeResource

 struct nk_user_font {
     {@link NkHandle nk_handle} userdata;
     float height;
     {@link NkTextWidthCallbackI nk_text_width_f} width;
     {@link NkQueryFontGlyphCallbackI nk_query_font_glyph_f} query;
     {@link NkHandle nk_handle} texture;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • USERDATA

      public static final int USERDATA
      The struct member offsets.
    • HEIGHT

      public static final int HEIGHT
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • QUERY

      public static final int QUERY
      The struct member offsets.
    • TEXTURE

      public static final int TEXTURE
      The struct member offsets.
  • Constructor Details

    • NkUserFont

      public NkUserFont(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.

  • Method Details