Class FT_PaintComposite

All Implemented Interfaces:
Pointer

public class FT_PaintComposite extends Struct<FT_PaintComposite>

 struct FT_PaintComposite {
     {@link FT_OpaquePaint FT_OpaquePaintRec} source_paint;
     FT_Composite_Mode composite_mode;
     {@link FT_OpaquePaint FT_OpaquePaintRec} backdrop_paint;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SOURCE_PAINT
      The struct member offsets.
    • COMPOSITE_MODE

      public static final int COMPOSITE_MODE
      The struct member offsets.
    • BACKDROP_PAINT

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

    • FT_PaintComposite

      public FT_PaintComposite(ByteBuffer container)
      Creates a FT_PaintComposite 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_PaintComposite>
    • source_paint

      public FT_OpaquePaint source_paint()
      Returns:
      a FT_OpaquePaint view of the source_paint field.
    • composite_mode

      public int composite_mode()
      Returns:
      the value of the composite_mode field.
    • backdrop_paint

      public FT_OpaquePaint backdrop_paint()
      Returns:
      a FT_OpaquePaint view of the backdrop_paint field.
    • create

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

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

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

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

      public static FT_OpaquePaint nsource_paint(long struct)
      Unsafe version of source_paint().
    • ncomposite_mode

      public static int ncomposite_mode(long struct)
      Unsafe version of composite_mode().
    • nbackdrop_paint

      public static FT_OpaquePaint nbackdrop_paint(long struct)
      Unsafe version of backdrop_paint().