Class FT_OpaquePaint

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FT_OpaquePaint extends Struct<FT_OpaquePaint> implements NativeResource

 struct FT_OpaquePaintRec {
     FT_Byte * p;
     FT_Bool insert_root_transform;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int P
      The struct member offsets.
    • INSERT_ROOT_TRANSFORM

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

    • FT_OpaquePaint

      public FT_OpaquePaint(ByteBuffer container)
      Creates a FT_OpaquePaint 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_OpaquePaint>
    • p

      public @Nullable ByteBuffer p(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the p field.
    • insert_root_transform

      public boolean insert_root_transform()
      Returns:
      the value of the insert_root_transform field.
    • malloc

      public static FT_OpaquePaint malloc()
      Returns a new FT_OpaquePaint instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FT_OpaquePaint calloc()
      Returns a new FT_OpaquePaint instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FT_OpaquePaint create()
      Returns a new FT_OpaquePaint instance allocated with BufferUtils.
    • create

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

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

      public static FT_OpaquePaint.Buffer malloc(int capacity)
      Returns a new FT_OpaquePaint.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FT_OpaquePaint.Buffer calloc(int capacity)
      Returns a new FT_OpaquePaint.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FT_OpaquePaint.Buffer create(int capacity)
      Returns a new FT_OpaquePaint.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      public static FT_OpaquePaint malloc(MemoryStack stack)
      Returns a new FT_OpaquePaint instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FT_OpaquePaint calloc(MemoryStack stack)
      Returns a new FT_OpaquePaint instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FT_OpaquePaint.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new FT_OpaquePaint.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FT_OpaquePaint.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FT_OpaquePaint.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • np

      public static @Nullable ByteBuffer np(long struct, int capacity)
      Unsafe version of p.
    • ninsert_root_transform

      public static boolean ninsert_root_transform(long struct)
      Unsafe version of insert_root_transform().