Package org.freedesktop.harfbuzz
Class OtVarAxisInfo
java.lang.Object
org.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>
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the OtVarAxisInfo classintRead the value of the fieldaxis_index.floatRead the value of the fielddefault_value.Read the value of the fieldflags.floatRead the value of the fieldmax_value.floatRead the value of the fieldmin_value.Read the value of the fieldname_id.readTag()Read the value of the fieldtag.voidwriteAxisIndex(int axisIndex) Write a value in the fieldaxis_index.voidwriteDefaultValue(float defaultValue) Write a value in the fielddefault_value.voidwriteFlags(Set<OtVarAxisFlags> flags) Write a value in the fieldflags.voidwriteMaxValue(float maxValue) Write a value in the fieldmax_value.voidwriteMinValue(float minValue) Write a value in the fieldmin_value.voidwriteNameId(OtNameId nameId) Write a value in the fieldname_id.voidWrite a value in the fieldtag.Methods inherited from class org.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 fieldaxisIndextag- value for the fieldtagnameId- value for the fieldnameIdflags- value for the fieldflagsminValue- value for the fieldminValuedefaultValue- value for the fielddefaultValuemaxValue- value for the fieldmaxValuearena- 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 fieldaxisIndextag- value for the fieldtagnameId- value for the fieldnameIdflags- value for the fieldflagsminValue- value for the fieldminValuedefaultValue- value for the fielddefaultValuemaxValue- 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
-