Class NkUserFontGlyph

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkUserFontGlyph extends Struct<NkUserFontGlyph> implements NativeResource

 struct nk_user_font_glyph {
     {@link NkVec2 struct nk_vec2} uv[2];
     {@link NkVec2 struct nk_vec2} offset;
     float width;
     float height;
     float xadvance;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int UV
      The struct member offsets.
    • OFFSET

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

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

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

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

    • NkUserFontGlyph

      public NkUserFontGlyph(ByteBuffer container)
      Creates a NkUserFontGlyph 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