Class FT_ClipBox

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FT_ClipBox extends Struct<FT_ClipBox> implements NativeResource

 struct FT_ClipBox {
     {@link FT_Vector FT_Vector} bottom_left;
     {@link FT_Vector FT_Vector} top_left;
     {@link FT_Vector FT_Vector} top_right;
     {@link FT_Vector FT_Vector} bottom_right;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BOTTOM_LEFT
      The struct member offsets.
    • TOP_LEFT

      public static final int TOP_LEFT
      The struct member offsets.
    • TOP_RIGHT

      public static final int TOP_RIGHT
      The struct member offsets.
    • BOTTOM_RIGHT

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

    • FT_ClipBox

      public FT_ClipBox(ByteBuffer container)
      Creates a FT_ClipBox 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_ClipBox>
    • bottom_left

      public FT_Vector bottom_left()
      Returns:
      a FT_Vector view of the bottom_left field.
    • top_left

      public FT_Vector top_left()
      Returns:
      a FT_Vector view of the top_left field.
    • top_right

      public FT_Vector top_right()
      Returns:
      a FT_Vector view of the top_right field.
    • bottom_right

      public FT_Vector bottom_right()
      Returns:
      a FT_Vector view of the bottom_right field.
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static FT_Vector nbottom_left(long struct)
      Unsafe version of bottom_left().
    • ntop_left

      public static FT_Vector ntop_left(long struct)
      Unsafe version of top_left().
    • ntop_right

      public static FT_Vector ntop_right(long struct)
      Unsafe version of top_right().
    • nbottom_right

      public static FT_Vector nbottom_right(long struct)
      Unsafe version of bottom_right().