Class FT_BitmapGlyph

All Implemented Interfaces:
Pointer

public class FT_BitmapGlyph extends Struct<FT_BitmapGlyph>

 struct FT_BitmapGlyphRec {
     {@link FT_Glyph FT_GlyphRec} root;
     FT_Int left;
     FT_Int top;
     {@link FT_Bitmap FT_Bitmap} bitmap;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ROOT
      The struct member offsets.
    • LEFT

      public static final int LEFT
      The struct member offsets.
    • TOP

      public static final int TOP
      The struct member offsets.
    • BITMAP

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

    • FT_BitmapGlyph

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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FT_BitmapGlyph>
    • root

      public FT_Glyph root()
      Returns:
      a FT_Glyph view of the root field.
    • left

      public int left()
      Returns:
      the value of the left field.
    • top

      public int top()
      Returns:
      the value of the top field.
    • bitmap

      public FT_Bitmap bitmap()
      Returns:
      a FT_Bitmap view of the bitmap field.
    • create

      public static FT_BitmapGlyph create(long address)
      Returns a new FT_BitmapGlyph instance for the specified memory address.
    • createSafe

      public static @Nullable FT_BitmapGlyph createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static FT_BitmapGlyph.Buffer create(long address, int capacity)
      Create a FT_BitmapGlyph.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable FT_BitmapGlyph.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nroot

      public static FT_Glyph nroot(long struct)
      Unsafe version of root().
    • nleft

      public static int nleft(long struct)
      Unsafe version of left().
    • ntop

      public static int ntop(long struct)
      Unsafe version of top().
    • nbitmap

      public static FT_Bitmap nbitmap(long struct)
      Unsafe version of bitmap().