Class OtMathGlyphVariant

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.OtMathGlyphVariant
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class OtMathGlyphVariant extends ProxyInstance
Data type to hold math-variant information for a glyph.
Since:
1.3.3
  • Constructor Details

    • OtMathGlyphVariant

      public OtMathGlyphVariant(MemorySegment address)
      Create a OtMathGlyphVariant proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • OtMathGlyphVariant

      public OtMathGlyphVariant(Arena arena)
      Allocate a new OtMathGlyphVariant.
      Parameters:
      arena - to control the memory allocation scope
    • OtMathGlyphVariant

      public OtMathGlyphVariant()
      Allocate a new OtMathGlyphVariant. The memory is allocated with Arena.ofAuto().
    • OtMathGlyphVariant

      public OtMathGlyphVariant(Codepoint glyph, Position advance, Arena arena)
      Allocate a new OtMathGlyphVariant with the fields set to the provided values.
      Parameters:
      glyph - value for the field glyph
      advance - value for the field advance
      arena - to control the memory allocation scope
    • OtMathGlyphVariant

      public OtMathGlyphVariant(Codepoint glyph, Position advance)
      Allocate a new OtMathGlyphVariant with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      glyph - value for the field glyph
      advance - value for the field advance
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the OtMathGlyphVariant class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readGlyph

      public Codepoint readGlyph()
      Read the value of the field glyph.
      Returns:
      The value of the field glyph
    • writeGlyph

      public void writeGlyph(Codepoint glyph)
      Write a value in the field glyph.
      Parameters:
      glyph - The new value for the field glyph
    • readAdvance

      public Position readAdvance()
      Read the value of the field advance.
      Returns:
      The value of the field advance
    • writeAdvance

      public void writeAdvance(Position advance)
      Write a value in the field advance.
      Parameters:
      advance - The new value for the field advance