Package org.gnome.pango
Class AttrLanguage
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.pango.AttrLanguage
- All Implemented Interfaces:
Proxy
The
PangoAttrLanguage structure is used to represent attributes that
are languages.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new AttrLanguage.AttrLanguage(Arena arena) Allocate a new AttrLanguage.AttrLanguage(MemorySegment address) Create a AttrLanguage proxy instance for the provided memory address.AttrLanguage(Attribute attr, Language value) Allocate a new AttrLanguage with the fields set to the provided values.AttrLanguage(Attribute attr, Language value, Arena arena) Allocate a new AttrLanguage with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.static AttributeCreate a new language tag attribute.@Nullable AttributereadAttr()Read the value of the fieldattr.Read the value of the fieldvalue.voidWrite a value in the fieldattr.voidwriteValue(Language value) Write a value in the fieldvalue.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AttrLanguage
Create a AttrLanguage proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
AttrLanguage
Allocate a new AttrLanguage.- Parameters:
arena- to control the memory allocation scope
-
AttrLanguage
public AttrLanguage()Allocate a new AttrLanguage. The memory is allocated withArena.ofAuto(). -
AttrLanguage
-
AttrLanguage
Allocate a new AttrLanguage with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
attr- value for the fieldattrvalue- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readAttr
Read the value of the fieldattr.- Returns:
- The value of the field
attr
-
writeAttr
Write a value in the fieldattr.- Parameters:
attr- The new value for the fieldattr
-
readValue
Read the value of the fieldvalue.- Returns:
- The value of the field
value
-
writeValue
Write a value in the fieldvalue.- Parameters:
value- The new value for the fieldvalue
-
new_
Create a new language tag attribute.- Parameters:
language- language tag- Returns:
- the newly allocated
PangoAttribute, which should be freed withAttribute.destroy()
-