Package org.gnome.pango
Class AttrString
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.AttrString
- All Implemented Interfaces:
Proxy
The
PangoAttrString
structure is used to represent attributes with
a string value.-
Constructor Summary
ConstructorDescriptionAllocate a new AttrString.AttrString
(Arena arena) Allocate a new AttrString.AttrString
(MemorySegment address) Create a AttrString proxy instance for the provided memory address.AttrString
(Attribute attr, String value) Allocate a new AttrString with the fields set to the provided values.AttrString
(Attribute attr, String value, Arena arena) Allocate a new AttrString with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.readAttr()
Read the value of the fieldattr
.Read the value of the fieldvalue
.void
Write a value in the fieldattr
.void
writeValue
(String value, Arena _arena) Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AttrString
Create a AttrString proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AttrString
Allocate a new AttrString.- Parameters:
arena
- to control the memory allocation scope
-
AttrString
public AttrString()Allocate a new AttrString. The memory is allocated withArena.ofAuto()
. -
AttrString
-
AttrString
Allocate a new AttrString 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
-
writeValue
-