Class AttrLanguage

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.pango.AttrLanguage
All Implemented Interfaces:
Proxy

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

    • AttrLanguage

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

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

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

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

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

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

      public static Attribute new_(Language language)
      Create a new language tag attribute.
      Parameters:
      language - language tag
      Returns:
      the newly allocated PangoAttribute, which should be freed with Attribute.destroy()