Package org.freedesktop.harfbuzz
Class OtVarAxisInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.OtVarAxisInfo
- All Implemented Interfaces:
Proxy
Data type for holding variation-axis values.
The minimum, default, and maximum values are in un-normalized, user scales.
<note>Note: at present, the only flag defined for flags
is
HB_OT_VAR_AXIS_FLAG_HIDDEN
.</note>
-
Constructor Summary
ConstructorDescriptionAllocate a new OtVarAxisInfo.OtVarAxisInfo
(int axisIndex, Tag tag, OtNameId nameId, Set<OtVarAxisFlags> flags, float minValue, float defaultValue, float maxValue) Allocate a new OtVarAxisInfo with the fields set to the provided values.OtVarAxisInfo
(int axisIndex, Tag tag, OtNameId nameId, Set<OtVarAxisFlags> flags, float minValue, float defaultValue, float maxValue, Arena arena) Allocate a new OtVarAxisInfo with the fields set to the provided values.OtVarAxisInfo
(Arena arena) Allocate a new OtVarAxisInfo.OtVarAxisInfo
(MemorySegment address) Create a OtVarAxisInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the OtVarAxisInfo classint
Read the value of the fieldaxis_index
.float
Read the value of the fielddefault_value
.Read the value of the fieldflags
.float
Read the value of the fieldmax_value
.float
Read the value of the fieldmin_value
.Read the value of the fieldname_id
.readTag()
Read the value of the fieldtag
.void
writeAxisIndex
(int axisIndex) Write a value in the fieldaxis_index
.void
writeDefaultValue
(float defaultValue) Write a value in the fielddefault_value
.void
writeFlags
(Set<OtVarAxisFlags> flags) Write a value in the fieldflags
.void
writeMaxValue
(float maxValue) Write a value in the fieldmax_value
.void
writeMinValue
(float minValue) Write a value in the fieldmin_value
.void
writeNameId
(OtNameId nameId) Write a value in the fieldname_id
.void
Write a value in the fieldtag
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OtVarAxisInfo
Create a OtVarAxisInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
OtVarAxisInfo
Allocate a new OtVarAxisInfo.- Parameters:
arena
- to control the memory allocation scope
-
OtVarAxisInfo
public OtVarAxisInfo()Allocate a new OtVarAxisInfo. The memory is allocated withArena.ofAuto()
. -
OtVarAxisInfo
public OtVarAxisInfo(int axisIndex, Tag tag, OtNameId nameId, Set<OtVarAxisFlags> flags, float minValue, float defaultValue, float maxValue, Arena arena) Allocate a new OtVarAxisInfo with the fields set to the provided values.- Parameters:
axisIndex
- value for the fieldaxisIndex
tag
- value for the fieldtag
nameId
- value for the fieldnameId
flags
- value for the fieldflags
minValue
- value for the fieldminValue
defaultValue
- value for the fielddefaultValue
maxValue
- value for the fieldmaxValue
arena
- to control the memory allocation scope
-
OtVarAxisInfo
public OtVarAxisInfo(int axisIndex, Tag tag, OtNameId nameId, Set<OtVarAxisFlags> flags, float minValue, float defaultValue, float maxValue) Allocate a new OtVarAxisInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
axisIndex
- value for the fieldaxisIndex
tag
- value for the fieldtag
nameId
- value for the fieldnameId
flags
- value for the fieldflags
minValue
- value for the fieldminValue
defaultValue
- value for the fielddefaultValue
maxValue
- value for the fieldmaxValue
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readAxisIndex
public int readAxisIndex()Read the value of the fieldaxis_index
.- Returns:
- The value of the field
axis_index
-
writeAxisIndex
public void writeAxisIndex(int axisIndex) Write a value in the fieldaxis_index
.- Parameters:
axisIndex
- The new value for the fieldaxis_index
-
readTag
-
writeTag
Write a value in the fieldtag
.- Parameters:
tag
- The new value for the fieldtag
-
readNameId
Read the value of the fieldname_id
.- Returns:
- The value of the field
name_id
-
writeNameId
Write a value in the fieldname_id
.- Parameters:
nameId
- The new value for the fieldname_id
-
readFlags
Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-
readMinValue
public float readMinValue()Read the value of the fieldmin_value
.- Returns:
- The value of the field
min_value
-
writeMinValue
public void writeMinValue(float minValue) Write a value in the fieldmin_value
.- Parameters:
minValue
- The new value for the fieldmin_value
-
readDefaultValue
public float readDefaultValue()Read the value of the fielddefault_value
.- Returns:
- The value of the field
default_value
-
writeDefaultValue
public void writeDefaultValue(float defaultValue) Write a value in the fielddefault_value
.- Parameters:
defaultValue
- The new value for the fielddefault_value
-
readMaxValue
public float readMaxValue()Read the value of the fieldmax_value
.- Returns:
- The value of the field
max_value
-
writeMaxValue
public void writeMaxValue(float maxValue) Write a value in the fieldmax_value
.- Parameters:
maxValue
- The new value for the fieldmax_value
-