Class Analysis

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class Analysis extends ProxyInstance
The PangoAnalysis structure stores information about the properties of a segment of text.
  • Constructor Details

    • Analysis

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

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

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

      public Analysis(MemorySegment shapeEngine, MemorySegment langEngine, Font font, byte level, byte gravity, byte flags, byte script, Language language, SList<MemorySegment> extraAttrs, Arena arena)
      Allocate a new Analysis with the fields set to the provided values.
      Parameters:
      shapeEngine - value for the field shapeEngine
      langEngine - value for the field langEngine
      font - value for the field font
      level - value for the field level
      gravity - value for the field gravity
      flags - value for the field flags
      script - value for the field script
      language - value for the field language
      extraAttrs - value for the field extraAttrs
      arena - to control the memory allocation scope
    • Analysis

      public Analysis(MemorySegment shapeEngine, MemorySegment langEngine, Font font, byte level, byte gravity, byte flags, byte script, Language language, SList<MemorySegment> extraAttrs)
      Allocate a new Analysis with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      shapeEngine - value for the field shapeEngine
      langEngine - value for the field langEngine
      font - value for the field font
      level - value for the field level
      gravity - value for the field gravity
      flags - value for the field flags
      script - value for the field script
      language - value for the field language
      extraAttrs - value for the field extraAttrs
  • Method Details

    • getMemoryLayout

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

      public MemorySegment readShapeEngine()
      Read the value of the field shape_engine.
      Returns:
      The value of the field shape_engine
    • writeShapeEngine

      public void writeShapeEngine(MemorySegment shapeEngine)
      Write a value in the field shape_engine.
      Parameters:
      shapeEngine - The new value for the field shape_engine
    • readLangEngine

      public MemorySegment readLangEngine()
      Read the value of the field lang_engine.
      Returns:
      The value of the field lang_engine
    • writeLangEngine

      public void writeLangEngine(MemorySegment langEngine)
      Write a value in the field lang_engine.
      Parameters:
      langEngine - The new value for the field lang_engine
    • readFont

      public Font readFont()
      Read the value of the field font.
      Returns:
      The value of the field font
    • writeFont

      public void writeFont(Font font)
      Write a value in the field font.
      Parameters:
      font - The new value for the field font
    • readLevel

      public byte readLevel()
      Read the value of the field level.
      Returns:
      The value of the field level
    • writeLevel

      public void writeLevel(byte level)
      Write a value in the field level.
      Parameters:
      level - The new value for the field level
    • readGravity

      public byte readGravity()
      Read the value of the field gravity.
      Returns:
      The value of the field gravity
    • writeGravity

      public void writeGravity(byte gravity)
      Write a value in the field gravity.
      Parameters:
      gravity - The new value for the field gravity
    • readFlags

      public byte readFlags()
      Read the value of the field flags.
      Returns:
      The value of the field flags
    • writeFlags

      public void writeFlags(byte flags)
      Write a value in the field flags.
      Parameters:
      flags - The new value for the field flags
    • readScript

      public byte readScript()
      Read the value of the field script.
      Returns:
      The value of the field script
    • writeScript

      public void writeScript(byte script)
      Write a value in the field script.
      Parameters:
      script - The new value for the field script
    • readLanguage

      public Language readLanguage()
      Read the value of the field language.
      Returns:
      The value of the field language
    • writeLanguage

      public void writeLanguage(Language language)
      Write a value in the field language.
      Parameters:
      language - The new value for the field language
    • readExtraAttrs

      public SList<MemorySegment> readExtraAttrs()
      Read the value of the field extra_attrs.
      Returns:
      The value of the field extra_attrs
    • writeExtraAttrs

      public void writeExtraAttrs(SList<MemorySegment> extraAttrs)
      Write a value in the field extra_attrs.
      Parameters:
      extraAttrs - The new value for the field extra_attrs