Class FT_PaintTranslate

All Implemented Interfaces:
Pointer

public class FT_PaintTranslate extends Struct<FT_PaintTranslate>

 struct FT_PaintTranslate {
     {@link FT_OpaquePaint FT_OpaquePaintRec} paint;
     FT_Fixed dx;
     FT_Fixed dy;
 }
  • 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.
    • DX

      public static final int DX
      The struct member offsets.
    • DY

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

    • FT_PaintTranslate

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

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

      public long dx()
      Returns:
      the value of the dx field.
    • dy

      public long dy()
      Returns:
      the value of the dy field.
    • create

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

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

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

      public static @Nullable FT_PaintTranslate.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().
    • ndx

      public static long ndx(long struct)
      Unsafe version of dx().
    • ndy

      public static long ndy(long struct)
      Unsafe version of dy().