Package org.freedesktop.harfbuzz
Class OtMathGlyphVariant
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.OtMathGlyphVariant
- All Implemented Interfaces:
Proxy
Data type to hold math-variant information for a glyph.
- Since:
- 1.3.3
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new OtMathGlyphVariant.OtMathGlyphVariant(Arena arena) Allocate a new OtMathGlyphVariant.OtMathGlyphVariant(MemorySegment address) Create a OtMathGlyphVariant proxy instance for the provided memory address.OtMathGlyphVariant(Codepoint glyph, Position advance) Allocate a new OtMathGlyphVariant with the fields set to the provided values.OtMathGlyphVariant(Codepoint glyph, Position advance, Arena arena) Allocate a new OtMathGlyphVariant 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 OtMathGlyphVariant classRead the value of the fieldadvance.Read the value of the fieldglyph.voidwriteAdvance(Position advance) Write a value in the fieldadvance.voidwriteGlyph(Codepoint glyph) Write a value in the fieldglyph.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OtMathGlyphVariant
Create a OtMathGlyphVariant proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
OtMathGlyphVariant
Allocate a new OtMathGlyphVariant.- Parameters:
arena- to control the memory allocation scope
-
OtMathGlyphVariant
public OtMathGlyphVariant()Allocate a new OtMathGlyphVariant. The memory is allocated withArena.ofAuto(). -
OtMathGlyphVariant
-
OtMathGlyphVariant
Allocate a new OtMathGlyphVariant with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
glyph- value for the fieldglyphadvance- value for the fieldadvance
-
-
Method Details
-
getType
Get the GType of the OtMathGlyphVariant 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
-
readAdvance
Read the value of the fieldadvance.- Returns:
- The value of the field
advance
-
writeAdvance
Write a value in the fieldadvance.- Parameters:
advance- The new value for the fieldadvance
-