Class FT_PaintGlyph

All Implemented Interfaces:
Pointer

public class FT_PaintGlyph extends Struct<FT_PaintGlyph>

 struct FT_PaintGlyph {
     {@link FT_OpaquePaint FT_OpaquePaintRec} paint;
     FT_UInt glyphID;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PAINT
      The struct member offsets.
    • GLYPHID

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

    • FT_PaintGlyph

      public FT_PaintGlyph(ByteBuffer container)
      Creates a FT_PaintGlyph 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_PaintGlyph>
    • paint

      public FT_OpaquePaint paint()
      Returns:
      a FT_OpaquePaint view of the paint field.
    • glyphID

      public int glyphID()
      Returns:
      the value of the glyphID field.
    • create

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

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

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

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

      public static FT_OpaquePaint npaint(long struct)
      Unsafe version of paint().
    • nglyphID

      public static int nglyphID(long struct)
      Unsafe version of glyphID().