Class AttrString

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AttrString extends ProxyInstance
The PangoAttrString structure is used to represent attributes with a string value.
  • Constructor Details

    • AttrString

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

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

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

      public AttrString(Attribute attr, String value, Arena arena)
      Allocate a new AttrString 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
    • AttrString

      public AttrString(Attribute attr, String value)
      Allocate a new AttrString 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 String readValue()
      Read the value of the field value.
      Returns:
      The value of the field value
    • writeValue

      public void writeValue(String value, Arena _arena)
      Write a value in the field value.
      Parameters:
      value - The new value for the field value
      _arena - to control the memory allocation scope