Package org.gnome.pango
Class AttrInt
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.AttrInt
- All Implemented Interfaces:
Proxy
The
PangoAttrInt
structure is used to represent attributes with
an integer or enumeration value.-
Constructor Summary
ConstructorDescriptionAttrInt()
Allocate a new AttrInt.Allocate a new AttrInt.AttrInt
(MemorySegment address) Create a AttrInt proxy instance for the provided memory address.Allocate a new AttrInt with the fields set to the provided values.Allocate a new AttrInt 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
.int
Read the value of the fieldvalue
.void
Write a value in the fieldattr
.void
writeValue
(int value) Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AttrInt
Create a AttrInt proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AttrInt
Allocate a new AttrInt.- Parameters:
arena
- to control the memory allocation scope
-
AttrInt
public AttrInt()Allocate a new AttrInt. The memory is allocated withArena.ofAuto()
. -
AttrInt
-
AttrInt
Allocate a new AttrInt 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
public int readValue()Read the value of the fieldvalue
.- Returns:
- The value of the field
value
-
writeValue
public void writeValue(int value) Write a value in the fieldvalue
.- Parameters:
value
- The new value for the fieldvalue
-