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