Class FT_SVG_Document

All Implemented Interfaces:
Pointer

public class FT_SVG_Document extends Struct<FT_SVG_Document>

 struct FT_SVG_DocumentRec {
     FT_Byte * svg_document;
     FT_ULong svg_document_length;
     {@link FT_Size_Metrics FT_Size_Metrics} metrics;
     FT_UShort units_per_EM;
     FT_UShort start_glyph_id;
     FT_UShort end_glyph_id;
     {@link FT_Matrix FT_Matrix} transform;
     {@link FT_Vector FT_Vector} delta;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SVG_DOCUMENT
      The struct member offsets.
    • SVG_DOCUMENT_LENGTH

      public static final int SVG_DOCUMENT_LENGTH
      The struct member offsets.
    • METRICS

      public static final int METRICS
      The struct member offsets.
    • UNITS_PER_EM

      public static final int UNITS_PER_EM
      The struct member offsets.
    • START_GLYPH_ID

      public static final int START_GLYPH_ID
      The struct member offsets.
    • END_GLYPH_ID

      public static final int END_GLYPH_ID
      The struct member offsets.
    • TRANSFORM

      public static final int TRANSFORM
      The struct member offsets.
    • DELTA

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

    • FT_SVG_Document

      public FT_SVG_Document(ByteBuffer container)
      Creates a FT_SVG_Document 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_SVG_Document>
    • svg_document

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

      public long svg_document_length()
      Returns:
      the value of the svg_document_length field.
    • metrics

      public FT_Size_Metrics metrics()
      Returns:
      a FT_Size_Metrics view of the metrics field.
    • units_per_EM

      public short units_per_EM()
      Returns:
      the value of the units_per_EM field.
    • start_glyph_id

      public short start_glyph_id()
      Returns:
      the value of the start_glyph_id field.
    • end_glyph_id

      public short end_glyph_id()
      Returns:
      the value of the end_glyph_id field.
    • transform

      public FT_Matrix transform()
      Returns:
      a FT_Matrix view of the transform field.
    • delta

      public FT_Vector delta()
      Returns:
      a FT_Vector view of the delta field.
    • create

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

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

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

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

      public static ByteBuffer nsvg_document(long struct)
      Unsafe version of svg_document.
    • nsvg_document_length

      public static long nsvg_document_length(long struct)
      Unsafe version of svg_document_length().
    • nmetrics

      public static FT_Size_Metrics nmetrics(long struct)
      Unsafe version of metrics().
    • nunits_per_EM

      public static short nunits_per_EM(long struct)
      Unsafe version of units_per_EM().
    • nstart_glyph_id

      public static short nstart_glyph_id(long struct)
      Unsafe version of start_glyph_id().
    • nend_glyph_id

      public static short nend_glyph_id(long struct)
      Unsafe version of end_glyph_id().
    • ntransform

      public static FT_Matrix ntransform(long struct)
      Unsafe version of transform().
    • ndelta

      public static FT_Vector ndelta(long struct)
      Unsafe version of delta().