Class OtMathGlyphPart

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

@Generated("org.javagi.JavaGI") public class OtMathGlyphPart extends ProxyInstance
Data type to hold information for a "part" component of a math-variant glyph. Large variants for stretchable math glyphs (such as parentheses) can be constructed on the fly from parts.
Since:
1.3.3
  • Constructor Details

    • OtMathGlyphPart

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

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

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

      public OtMathGlyphPart(Codepoint glyph, Position startConnectorLength, Position endConnectorLength, Position fullAdvance, Set<OtMathGlyphPartFlags> flags, Arena arena)
      Allocate a new OtMathGlyphPart with the fields set to the provided values.
      Parameters:
      glyph - value for the field glyph
      startConnectorLength - value for the field startConnectorLength
      endConnectorLength - value for the field endConnectorLength
      fullAdvance - value for the field fullAdvance
      flags - value for the field flags
      arena - to control the memory allocation scope
    • OtMathGlyphPart

      public OtMathGlyphPart(Codepoint glyph, Position startConnectorLength, Position endConnectorLength, Position fullAdvance, Set<OtMathGlyphPartFlags> flags)
      Allocate a new OtMathGlyphPart with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      glyph - value for the field glyph
      startConnectorLength - value for the field startConnectorLength
      endConnectorLength - value for the field endConnectorLength
      fullAdvance - value for the field fullAdvance
      flags - value for the field flags
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the OtMathGlyphPart 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
    • readStartConnectorLength

      public Position readStartConnectorLength()
      Read the value of the field start_connector_length.
      Returns:
      The value of the field start_connector_length
    • writeStartConnectorLength

      public void writeStartConnectorLength(Position startConnectorLength)
      Write a value in the field start_connector_length.
      Parameters:
      startConnectorLength - The new value for the field start_connector_length
    • readEndConnectorLength

      public Position readEndConnectorLength()
      Read the value of the field end_connector_length.
      Returns:
      The value of the field end_connector_length
    • writeEndConnectorLength

      public void writeEndConnectorLength(Position endConnectorLength)
      Write a value in the field end_connector_length.
      Parameters:
      endConnectorLength - The new value for the field end_connector_length
    • readFullAdvance

      public Position readFullAdvance()
      Read the value of the field full_advance.
      Returns:
      The value of the field full_advance
    • writeFullAdvance

      public void writeFullAdvance(Position fullAdvance)
      Write a value in the field full_advance.
      Parameters:
      fullAdvance - The new value for the field full_advance
    • readFlags

      public Set<OtMathGlyphPartFlags> readFlags()
      Read the value of the field flags.
      Returns:
      The value of the field flags
    • writeFlags

      public void writeFlags(Set<OtMathGlyphPartFlags> flags)
      Write a value in the field flags.
      Parameters:
      flags - The new value for the field flags