Package org.freedesktop.harfbuzz
Class OtMathGlyphPart
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.OtMathGlyphPart
- All Implemented Interfaces:
Proxy
Data type to hold information for a "part" component of a math-variant glyph.
Large variants for stretchable math glyphs (such as parentheses) can be constructed
on the fly from parts.
- Since:
- 1.3.3
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new OtMathGlyphPart.OtMathGlyphPart(Arena arena) Allocate a new OtMathGlyphPart.OtMathGlyphPart(MemorySegment address) Create a OtMathGlyphPart proxy instance for the provided memory address.OtMathGlyphPart(Codepoint glyph, Position startConnectorLength, Position endConnectorLength, Position fullAdvance, Set<OtMathGlyphPartFlags> flags) Allocate a new OtMathGlyphPart with the fields set to the provided values.OtMathGlyphPart(Codepoint glyph, Position startConnectorLength, Position endConnectorLength, Position fullAdvance, Set<OtMathGlyphPartFlags> flags, Arena arena) Allocate a new OtMathGlyphPart with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the OtMathGlyphPart classRead the value of the fieldend_connector_length.Read the value of the fieldflags.Read the value of the fieldfull_advance.Read the value of the fieldglyph.Read the value of the fieldstart_connector_length.voidwriteEndConnectorLength(Position endConnectorLength) Write a value in the fieldend_connector_length.voidwriteFlags(Set<OtMathGlyphPartFlags> flags) Write a value in the fieldflags.voidwriteFullAdvance(Position fullAdvance) Write a value in the fieldfull_advance.voidwriteGlyph(Codepoint glyph) Write a value in the fieldglyph.voidwriteStartConnectorLength(Position startConnectorLength) Write a value in the fieldstart_connector_length.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OtMathGlyphPart
Create a OtMathGlyphPart proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
OtMathGlyphPart
Allocate a new OtMathGlyphPart.- Parameters:
arena- to control the memory allocation scope
-
OtMathGlyphPart
public OtMathGlyphPart()Allocate a new OtMathGlyphPart. The memory is allocated withArena.ofAuto(). -
OtMathGlyphPart
public OtMathGlyphPart(Codepoint glyph, Position startConnectorLength, Position endConnectorLength, Position fullAdvance, Set<OtMathGlyphPartFlags> flags, Arena arena) Allocate a new OtMathGlyphPart with the fields set to the provided values.- Parameters:
glyph- value for the fieldglyphstartConnectorLength- value for the fieldstartConnectorLengthendConnectorLength- value for the fieldendConnectorLengthfullAdvance- value for the fieldfullAdvanceflags- value for the fieldflagsarena- to control the memory allocation scope
-
OtMathGlyphPart
public OtMathGlyphPart(Codepoint glyph, Position startConnectorLength, Position endConnectorLength, Position fullAdvance, Set<OtMathGlyphPartFlags> flags) Allocate a new OtMathGlyphPart with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
glyph- value for the fieldglyphstartConnectorLength- value for the fieldstartConnectorLengthendConnectorLength- value for the fieldendConnectorLengthfullAdvance- value for the fieldfullAdvanceflags- value for the fieldflags
-
-
Method Details
-
getType
Get the GType of the OtMathGlyphPart class- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readGlyph
Read the value of the fieldglyph.- Returns:
- The value of the field
glyph
-
writeGlyph
Write a value in the fieldglyph.- Parameters:
glyph- The new value for the fieldglyph
-
readStartConnectorLength
Read the value of the fieldstart_connector_length.- Returns:
- The value of the field
start_connector_length
-
writeStartConnectorLength
Write a value in the fieldstart_connector_length.- Parameters:
startConnectorLength- The new value for the fieldstart_connector_length
-
readEndConnectorLength
Read the value of the fieldend_connector_length.- Returns:
- The value of the field
end_connector_length
-
writeEndConnectorLength
Write a value in the fieldend_connector_length.- Parameters:
endConnectorLength- The new value for the fieldend_connector_length
-
readFullAdvance
Read the value of the fieldfull_advance.- Returns:
- The value of the field
full_advance
-
writeFullAdvance
Write a value in the fieldfull_advance.- Parameters:
fullAdvance- The new value for the fieldfull_advance
-
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
-