Class FT_PaintSolid

All Implemented Interfaces:
Pointer

public class FT_PaintSolid extends Struct<FT_PaintSolid>

 struct FT_PaintSolid {
     {@link FT_ColorIndex FT_ColorIndex} color;
 }
  • Field Details

    • SIZEOF

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

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

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

    • FT_PaintSolid

      public FT_PaintSolid(ByteBuffer container)
      Creates a FT_PaintSolid 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_PaintSolid>
    • color

      public FT_ColorIndex color()
      Returns:
      a FT_ColorIndex view of the color field.
    • create

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

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

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

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

      public static FT_ColorIndex ncolor(long struct)
      Unsafe version of color().