Class GlyphInfo

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

@Generated("org.javagi.JavaGI") public class GlyphInfo extends ProxyInstance
The hb_glyph_info_t is the structure that holds information about the glyphs and their relation to input text.
  • 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(Codepoint codepoint, Mask mask, int cluster, VarInt var1, VarInt var2, Arena arena)
      Allocate a new GlyphInfo with the fields set to the provided values.
      Parameters:
      codepoint - value for the field codepoint
      mask - value for the field mask
      cluster - value for the field cluster
      var1 - value for the field var1
      var2 - value for the field var2
      arena - to control the memory allocation scope
    • GlyphInfo

      public GlyphInfo(Codepoint codepoint, Mask mask, int cluster, VarInt var1, VarInt var2)
      Allocate a new GlyphInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      codepoint - value for the field codepoint
      mask - value for the field mask
      cluster - value for the field cluster
      var1 - value for the field var1
      var2 - value for the field var2
  • Method Details

    • getType

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

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

      public Codepoint readCodepoint()
      Read the value of the field codepoint.
      Returns:
      The value of the field codepoint
    • writeCodepoint

      public void writeCodepoint(Codepoint codepoint)
      Write a value in the field codepoint.
      Parameters:
      codepoint - The new value for the field codepoint
    • readMask

      public Mask readMask()
      Read the value of the field mask.
      Returns:
      The value of the field mask
    • writeMask

      public void writeMask(Mask mask)
      Write a value in the field mask.
      Parameters:
      mask - The new value for the field mask
    • readCluster

      public int readCluster()
      Read the value of the field cluster.
      Returns:
      The value of the field cluster
    • writeCluster

      public void writeCluster(int cluster)
      Write a value in the field cluster.
      Parameters:
      cluster - The new value for the field cluster
    • readVar1

      public @Nullable VarInt readVar1()
      Read the value of the field var1.
      Returns:
      The value of the field var1
    • writeVar1

      public void writeVar1(@Nullable VarInt var1)
      Write a value in the field var1.
      Parameters:
      var1 - The new value for the field var1
    • readVar2

      public @Nullable VarInt readVar2()
      Read the value of the field var2.
      Returns:
      The value of the field var2
    • writeVar2

      public void writeVar2(@Nullable VarInt var2)
      Write a value in the field var2.
      Parameters:
      var2 - The new value for the field var2