Package org.gnome.pango
Class AttrLanguage
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.AttrLanguage
- All Implemented Interfaces:
Proxy
The
PangoAttrLanguage
structure is used to represent attributes that
are languages.-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.static Attribute
Create a new language tag attribute.readAttr()
Read the value of the fieldattr
.Read the value of the fieldvalue
.void
Write a value in the fieldattr
.void
writeValue
(Language value) Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.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 fieldattr
value
- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readAttr
-
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()
-