Class FTC_SBit

All Implemented Interfaces:
Pointer

public class FTC_SBit extends Struct<FTC_SBit>

 struct FTC_SBitRec {
     FT_Byte width;
     FT_Byte height;
     FT_Char left;
     FT_Char top;
     FT_Byte format;
     FT_Byte max_grays;
     FT_Short pitch;
     FT_Char xadvance;
     FT_Char yadvance;
     FT_Byte * buffer;
 }
  • Field Details

    • SIZEOF

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

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

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

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

      public static final int LEFT
      The struct member offsets.
    • TOP

      public static final int TOP
      The struct member offsets.
    • FORMAT

      public static final int FORMAT
      The struct member offsets.
    • MAX_GRAYS

      public static final int MAX_GRAYS
      The struct member offsets.
    • PITCH

      public static final int PITCH
      The struct member offsets.
    • XADVANCE

      public static final int XADVANCE
      The struct member offsets.
    • YADVANCE

      public static final int YADVANCE
      The struct member offsets.
    • BUFFER

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

    • FTC_SBit

      public FTC_SBit(ByteBuffer container)
      Creates a FTC_SBit 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_SBit>
    • width

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

      public byte height()
      Returns:
      the value of the height field.
    • left

      public byte left()
      Returns:
      the value of the left field.
    • top

      public byte top()
      Returns:
      the value of the top field.
    • format

      public byte format()
      Returns:
      the value of the format field.
    • max_grays

      public byte max_grays()
      Returns:
      the value of the max_grays field.
    • pitch

      public short pitch()
      Returns:
      the value of the pitch field.
    • xadvance

      public byte xadvance()
      Returns:
      the value of the xadvance field.
    • yadvance

      public byte yadvance()
      Returns:
      the value of the yadvance field.
    • buffer

      public ByteBuffer buffer(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the buffer field.
    • create

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

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

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

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

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

      public static byte nheight(long struct)
      Unsafe version of height().
    • nleft

      public static byte nleft(long struct)
      Unsafe version of left().
    • ntop

      public static byte ntop(long struct)
      Unsafe version of top().
    • nformat

      public static byte nformat(long struct)
      Unsafe version of format().
    • nmax_grays

      public static byte nmax_grays(long struct)
      Unsafe version of max_grays().
    • npitch

      public static short npitch(long struct)
      Unsafe version of pitch().
    • nxadvance

      public static byte nxadvance(long struct)
      Unsafe version of xadvance().
    • nyadvance

      public static byte nyadvance(long struct)
      Unsafe version of yadvance().
    • nbuffer

      public static ByteBuffer nbuffer(long struct, int capacity)
      Unsafe version of buffer.