Class FT_Outline

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FT_Outline extends Struct<FT_Outline> implements NativeResource

 struct FT_Outline {
     unsigned short n_contours;
     unsigned short n_points;
     {@link FT_Vector FT_Vector} * points;
     unsigned char * tags;
     unsigned short * contours;
     int flags;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int N_CONTOURS
      The struct member offsets.
    • N_POINTS

      public static final int N_POINTS
      The struct member offsets.
    • POINTS

      public static final int POINTS
      The struct member offsets.
    • TAGS

      public static final int TAGS
      The struct member offsets.
    • CONTOURS

      public static final int CONTOURS
      The struct member offsets.
    • FLAGS

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

    • FT_Outline

      public FT_Outline(ByteBuffer container)
      Creates a FT_Outline 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_Outline>
    • n_contours

      public short n_contours()
      Returns:
      the value of the n_contours field.
    • n_points

      public short n_points()
      Returns:
      the value of the n_points field.
    • points

      public FT_Vector.Buffer points()
      Returns:
      a FT_Vector.Buffer view of the struct array pointed to by the points field.
    • tags

      public ByteBuffer tags()
      Returns:
      a ByteBuffer view of the data pointed to by the tags field.
    • contours

      public ShortBuffer contours()
      Returns:
      a ShortBuffer view of the data pointed to by the contours field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • malloc

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

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

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

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

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

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

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

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

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

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

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

      public static FT_Outline calloc(MemoryStack stack)
      Returns a new FT_Outline 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_Outline.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new FT_Outline.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FT_Outline.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FT_Outline.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
    • nn_contours

      public static short nn_contours(long struct)
      Unsafe version of n_contours().
    • nn_points

      public static short nn_points(long struct)
      Unsafe version of n_points().
    • npoints

      public static FT_Vector.Buffer npoints(long struct)
      Unsafe version of points().
    • ntags

      public static ByteBuffer ntags(long struct)
      Unsafe version of tags.
    • ncontours

      public static ShortBuffer ncontours(long struct)
      Unsafe version of contours.
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().