Class FTC_ImageType

All Implemented Interfaces:
Pointer

public class FTC_ImageType extends Struct<FTC_ImageType>

 struct FTC_ImageTypeRec {
     FTC_FaceID face_id;
     FT_UInt width;
     FT_UInt height;
     FT_Int32 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.
    • FACE_ID

      public static final int FACE_ID
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • HEIGHT

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

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

    • FTC_ImageType

      public FTC_ImageType(ByteBuffer container)
      Creates a FTC_ImageType 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<FTC_ImageType>
    • face_id

      public long face_id()
      Returns:
      the value of the face_id field.
    • width

      public int width()
      Returns:
      the value of the width field.
    • height

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

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

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

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

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

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

      public static long nface_id(long struct)
      Unsafe version of face_id().
    • nwidth

      public static int nwidth(long struct)
      Unsafe version of width().
    • nheight

      public static int nheight(long struct)
      Unsafe version of height().
    • nflags

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