Package org.freedesktop.harfbuzz
Class OtMathGlyphPart
java.lang.Object
io.github.jwharm.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.
-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.static Type
getType()
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
.void
writeEndConnectorLength
(Position endConnectorLength) Write a value in the fieldend_connector_length
.void
writeFlags
(Set<OtMathGlyphPartFlags> flags) Write a value in the fieldflags
.void
writeFullAdvance
(Position fullAdvance) Write a value in the fieldfull_advance
.void
writeGlyph
(Codepoint glyph) Write a value in the fieldglyph
.void
writeStartConnectorLength
(Position startConnectorLength) Write a value in the fieldstart_connector_length
.Methods inherited from class io.github.jwharm.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 fieldglyph
startConnectorLength
- value for the fieldstartConnectorLength
endConnectorLength
- value for the fieldendConnectorLength
fullAdvance
- value for the fieldfullAdvance
flags
- value for the fieldflags
arena
- 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 fieldglyph
startConnectorLength
- value for the fieldstartConnectorLength
endConnectorLength
- value for the fieldendConnectorLength
fullAdvance
- value for the fieldfullAdvance
flags
- value for the fieldflags
-
-
Method Details
-
getType
-
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
-