Class OtVarAxisInfo

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

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

Data type for holding variation-axis values.

The minimum, default, and maximum values are in un-normalized, user scales.

Note: at present, the only flag defined for flags is HB_OT_VAR_AXIS_FLAG_HIDDEN.

Since:
2.2.0
  • Constructor Details

    • OtVarAxisInfo

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

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

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

      public OtVarAxisInfo(int axisIndex, Tag tag, OtNameId nameId, Set<OtVarAxisFlags> flags, float minValue, float defaultValue, float maxValue, Arena arena)
      Allocate a new OtVarAxisInfo with the fields set to the provided values.
      Parameters:
      axisIndex - value for the field axisIndex
      tag - value for the field tag
      nameId - value for the field nameId
      flags - value for the field flags
      minValue - value for the field minValue
      defaultValue - value for the field defaultValue
      maxValue - value for the field maxValue
      arena - to control the memory allocation scope
    • OtVarAxisInfo

      public OtVarAxisInfo(int axisIndex, Tag tag, OtNameId nameId, Set<OtVarAxisFlags> flags, float minValue, float defaultValue, float maxValue)
      Allocate a new OtVarAxisInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      axisIndex - value for the field axisIndex
      tag - value for the field tag
      nameId - value for the field nameId
      flags - value for the field flags
      minValue - value for the field minValue
      defaultValue - value for the field defaultValue
      maxValue - value for the field maxValue
  • Method Details

    • getType

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

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

      public int readAxisIndex()
      Read the value of the field axis_index.
      Returns:
      The value of the field axis_index
    • writeAxisIndex

      public void writeAxisIndex(int axisIndex)
      Write a value in the field axis_index.
      Parameters:
      axisIndex - The new value for the field axis_index
    • readTag

      public Tag readTag()
      Read the value of the field tag.
      Returns:
      The value of the field tag
    • writeTag

      public void writeTag(Tag tag)
      Write a value in the field tag.
      Parameters:
      tag - The new value for the field tag
    • readNameId

      public OtNameId readNameId()
      Read the value of the field name_id.
      Returns:
      The value of the field name_id
    • writeNameId

      public void writeNameId(OtNameId nameId)
      Write a value in the field name_id.
      Parameters:
      nameId - The new value for the field name_id
    • readFlags

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

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

      public float readMinValue()
      Read the value of the field min_value.
      Returns:
      The value of the field min_value
    • writeMinValue

      public void writeMinValue(float minValue)
      Write a value in the field min_value.
      Parameters:
      minValue - The new value for the field min_value
    • readDefaultValue

      public float readDefaultValue()
      Read the value of the field default_value.
      Returns:
      The value of the field default_value
    • writeDefaultValue

      public void writeDefaultValue(float defaultValue)
      Write a value in the field default_value.
      Parameters:
      defaultValue - The new value for the field default_value
    • readMaxValue

      public float readMaxValue()
      Read the value of the field max_value.
      Returns:
      The value of the field max_value
    • writeMaxValue

      public void writeMaxValue(float maxValue)
      Write a value in the field max_value.
      Parameters:
      maxValue - The new value for the field max_value