Package org.gnome.pango
Class GlyphInfo
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.readAttr()
Read the value of the fieldattr
.Read the value of the fieldgeometry
.Read the value of the fieldglyph
.void
writeAttr
(GlyphVisAttr attr) Write a value in the fieldattr
.void
writeGeometry
(GlyphGeometry geometry) Write a value in the fieldgeometry
.void
writeGlyph
(Glyph glyph) Write a value in the fieldglyph
.Methods inherited from class io.github.jwharm.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 fieldglyph
geometry
- value for the fieldgeometry
attr
- value for the fieldattr
arena
- 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 fieldglyph
geometry
- value for the fieldgeometry
attr
- 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
-