Class NkUserFontGlyph

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

    public class NkUserFontGlyph
    extends Struct
    implements NativeResource

    Member documentation

    • uv – texture coordinates
    • offset – offset between top left and glyph
    • width – width of the glyph
    • height – height of the glyph
    • xadvance – offset to the next glyph


     struct nk_user_font_glyph {
         struct nk_vec2 uv[2];
         struct nk_vec2 offset;
         float width;
         float height;
         float xadvance;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • NkUserFontGlyph

        public NkUserFontGlyph​(java.nio.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.