Class AttrFloat

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AttrFloat extends ProxyInstance
The PangoAttrFloat structure is used to represent attributes with a float or double value.
  • Constructor Details

    • AttrFloat

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

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

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

      public AttrFloat(Attribute attr, double value, Arena arena)
      Allocate a new AttrFloat with the fields set to the provided values.
      Parameters:
      attr - value for the field attr
      value - value for the field value
      arena - to control the memory allocation scope
    • AttrFloat

      public AttrFloat(Attribute attr, double value)
      Allocate a new AttrFloat with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      attr - value for the field attr
      value - value for the field value
  • Method Details

    • getMemoryLayout

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

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

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

      public double readValue()
      Read the value of the field value.
      Returns:
      The value of the field value
    • writeValue

      public void writeValue(double value)
      Write a value in the field value.
      Parameters:
      value - The new value for the field value