Class AttrColor

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AttrColor extends ProxyInstance
The PangoAttrColor structure is used to represent attributes that are colors.
  • Constructor Details

    • AttrColor

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

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

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

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

      public AttrColor(Attribute attr, Color color)
      Allocate a new AttrColor with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      attr - value for the field attr
      color - value for the field color
  • 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
    • readColor

      public @Nullable Color readColor()
      Read the value of the field color.
      Returns:
      The value of the field color
    • writeColor

      public void writeColor(@Nullable Color color)
      Write a value in the field color.
      Parameters:
      color - The new value for the field color