Package org.gnome.pango
Class AttrColor
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.pango.AttrColor
- All Implemented Interfaces:
Proxy
The
PangoAttrColor structure is used to represent attributes that
are colors.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.@Nullable AttributereadAttr()Read the value of the fieldattr.@Nullable ColorRead the value of the fieldcolor.voidWrite a value in the fieldattr.voidwriteColor(@Nullable Color color) Write a value in the fieldcolor.Methods inherited from class org.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 fieldattrcolor- value for the fieldcolor
-
-
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
-
readColor
Read the value of the fieldcolor.- Returns:
- The value of the field
color
-
writeColor
Write a value in the fieldcolor.- Parameters:
color- The new value for the fieldcolor
-