Class GlyphInfo

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class GlyphInfo extends ProxyInstance
A PangoGlyphInfo structure represents a single glyph with positioning information and visual attributes.
  • Constructor Details

    • GlyphInfo

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

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

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

      public GlyphInfo(Glyph glyph, GlyphGeometry geometry, GlyphVisAttr attr, Arena arena)
      Allocate a new GlyphInfo with the fields set to the provided values.
      Parameters:
      glyph - value for the field glyph
      geometry - value for the field geometry
      attr - value for the field attr
      arena - to control the memory allocation scope
    • GlyphInfo

      public GlyphInfo(Glyph glyph, GlyphGeometry geometry, GlyphVisAttr attr)
      Allocate a new GlyphInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      glyph - value for the field glyph
      geometry - value for the field geometry
      attr - value for the field attr
  • Method Details

    • getMemoryLayout

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

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

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

      public @Nullable GlyphGeometry readGeometry()
      Read the value of the field geometry.
      Returns:
      The value of the field geometry
    • writeGeometry

      public void writeGeometry(@Nullable GlyphGeometry geometry)
      Write a value in the field geometry.
      Parameters:
      geometry - The new value for the field geometry
    • readAttr

      public @Nullable GlyphVisAttr readAttr()
      Read the value of the field attr.
      Returns:
      The value of the field attr
    • writeAttr

      public void writeAttr(@Nullable GlyphVisAttr attr)
      Write a value in the field attr.
      Parameters:
      attr - The new value for the field attr