Class GlyphExtents

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

@Generated("org.javagi.JavaGI") public class GlyphExtents extends ProxyInstance

Glyph extent values, measured in font units.

Note that height is negative, in coordinate systems that grow up.

  • Constructor Details

    • GlyphExtents

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

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

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

      public GlyphExtents(Position xBearing, Position yBearing, Position width, Position height, Arena arena)
      Allocate a new GlyphExtents with the fields set to the provided values.
      Parameters:
      xBearing - value for the field xBearing
      yBearing - value for the field yBearing
      width - value for the field width
      height - value for the field height
      arena - to control the memory allocation scope
    • GlyphExtents

      public GlyphExtents(Position xBearing, Position yBearing, Position width, Position height)
      Allocate a new GlyphExtents with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      xBearing - value for the field xBearing
      yBearing - value for the field yBearing
      width - value for the field width
      height - value for the field height
  • Method Details

    • getMemoryLayout

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

      public Position readXBearing()
      Read the value of the field x_bearing.
      Returns:
      The value of the field x_bearing
    • writeXBearing

      public void writeXBearing(Position xBearing)
      Write a value in the field x_bearing.
      Parameters:
      xBearing - The new value for the field x_bearing
    • readYBearing

      public Position readYBearing()
      Read the value of the field y_bearing.
      Returns:
      The value of the field y_bearing
    • writeYBearing

      public void writeYBearing(Position yBearing)
      Write a value in the field y_bearing.
      Parameters:
      yBearing - The new value for the field y_bearing
    • readWidth

      public Position readWidth()
      Read the value of the field width.
      Returns:
      The value of the field width
    • writeWidth

      public void writeWidth(Position width)
      Write a value in the field width.
      Parameters:
      width - The new value for the field width
    • readHeight

      public Position readHeight()
      Read the value of the field height.
      Returns:
      The value of the field height
    • writeHeight

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