Class AttrInt

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AttrInt extends ProxyInstance
The PangoAttrInt structure is used to represent attributes with an integer or enumeration value.
  • Constructor Details

    • AttrInt

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

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

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

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

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

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