Package org.gnome.pango
Class AttrColor
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.AttrColor
- All Implemented Interfaces:
Proxy
The
PangoAttrColor
structure is used to represent attributes that
are colors.-
Constructor Summary
ConstructorDescriptionAllocate a new AttrColor.Allocate a new AttrColor.AttrColor
(MemorySegment address) Create a AttrColor proxy instance for the provided memory address.Allocate a new AttrColor with the fields set to the provided values.Allocate a new AttrColor 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 fieldcolor
.void
Write a value in the fieldattr
.void
writeColor
(Color color) Write a value in the fieldcolor
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AttrColor
Create a AttrColor proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AttrColor
Allocate a new AttrColor.- Parameters:
arena
- to control the memory allocation scope
-
AttrColor
public AttrColor()Allocate a new AttrColor. The memory is allocated withArena.ofAuto()
. -
AttrColor
-
AttrColor
Allocate a new AttrColor with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
attr
- value for the fieldattr
color
- value for the fieldcolor
-
-
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
-
readColor
-
writeColor
Write a value in the fieldcolor
.- Parameters:
color
- The new value for the fieldcolor
-