Package org.gnome.pango
Class GlyphInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.pango.GlyphInfo
- All Implemented Interfaces:
Proxy
A
PangoGlyphInfo structure represents a single glyph with
positioning information and visual attributes.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new GlyphInfo.Allocate a new GlyphInfo.GlyphInfo(MemorySegment address) Create a GlyphInfo proxy instance for the provided memory address.GlyphInfo(Glyph glyph, GlyphGeometry geometry, GlyphVisAttr attr) Allocate a new GlyphInfo with the fields set to the provided values.GlyphInfo(Glyph glyph, GlyphGeometry geometry, GlyphVisAttr attr, Arena arena) Allocate a new GlyphInfo with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.@Nullable GlyphVisAttrreadAttr()Read the value of the fieldattr.@Nullable GlyphGeometryRead the value of the fieldgeometry.Read the value of the fieldglyph.voidwriteAttr(@Nullable GlyphVisAttr attr) Write a value in the fieldattr.voidwriteGeometry(@Nullable GlyphGeometry geometry) Write a value in the fieldgeometry.voidwriteGlyph(Glyph glyph) Write a value in the fieldglyph.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
GlyphInfo
Create a GlyphInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
GlyphInfo
Allocate a new GlyphInfo.- Parameters:
arena- to control the memory allocation scope
-
GlyphInfo
public GlyphInfo()Allocate a new GlyphInfo. The memory is allocated withArena.ofAuto(). -
GlyphInfo
Allocate a new GlyphInfo with the fields set to the provided values.- Parameters:
glyph- value for the fieldglyphgeometry- value for the fieldgeometryattr- value for the fieldattrarena- to control the memory allocation scope
-
GlyphInfo
Allocate a new GlyphInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
glyph- value for the fieldglyphgeometry- value for the fieldgeometryattr- value for the fieldattr
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readGlyph
-
writeGlyph
Write a value in the fieldglyph.- Parameters:
glyph- The new value for the fieldglyph
-
readGeometry
Read the value of the fieldgeometry.- Returns:
- The value of the field
geometry
-
writeGeometry
Write a value in the fieldgeometry.- Parameters:
geometry- The new value for the fieldgeometry
-
readAttr
Read the value of the fieldattr.- Returns:
- The value of the field
attr
-
writeAttr
Write a value in the fieldattr.- Parameters:
attr- The new value for the fieldattr
-