Package org.gnome.pango
Class Analysis
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.Analysis
- All Implemented Interfaces:
Proxy
The
PangoAnalysis
structure stores information about
the properties of a segment of text.-
Constructor Summary
ConstructorDescriptionAnalysis()
Allocate a new Analysis.Allocate a new Analysis.Analysis
(MemorySegment address) Create a Analysis proxy instance for the provided memory address.Analysis
(MemorySegment shapeEngine, MemorySegment langEngine, Font font, byte level, byte gravity, byte flags, byte script, Language language, SList<MemorySegment> extraAttrs) Allocate a new Analysis with the fields set to the provided values.Analysis
(MemorySegment shapeEngine, MemorySegment langEngine, Font font, byte level, byte gravity, byte flags, byte script, Language language, SList<MemorySegment> extraAttrs, Arena arena) Allocate a new Analysis with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fieldextra_attrs
.byte
Read the value of the fieldflags
.readFont()
Read the value of the fieldfont
.byte
Read the value of the fieldgravity
.Read the value of the fieldlang_engine
.Read the value of the fieldlanguage
.byte
Read the value of the fieldlevel
.byte
Read the value of the fieldscript
.Read the value of the fieldshape_engine
.void
writeExtraAttrs
(SList<MemorySegment> extraAttrs) Write a value in the fieldextra_attrs
.void
writeFlags
(byte flags) Write a value in the fieldflags
.void
Write a value in the fieldfont
.void
writeGravity
(byte gravity) Write a value in the fieldgravity
.void
writeLangEngine
(MemorySegment langEngine) Write a value in the fieldlang_engine
.void
writeLanguage
(Language language) Write a value in the fieldlanguage
.void
writeLevel
(byte level) Write a value in the fieldlevel
.void
writeScript
(byte script) Write a value in the fieldscript
.void
writeShapeEngine
(MemorySegment shapeEngine) Write a value in the fieldshape_engine
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Analysis
Create a Analysis proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
Analysis
Allocate a new Analysis.- Parameters:
arena
- to control the memory allocation scope
-
Analysis
public Analysis()Allocate a new Analysis. The memory is allocated withArena.ofAuto()
. -
Analysis
public Analysis(MemorySegment shapeEngine, MemorySegment langEngine, Font font, byte level, byte gravity, byte flags, byte script, Language language, SList<MemorySegment> extraAttrs, Arena arena) Allocate a new Analysis with the fields set to the provided values.- Parameters:
shapeEngine
- value for the fieldshapeEngine
langEngine
- value for the fieldlangEngine
font
- value for the fieldfont
level
- value for the fieldlevel
gravity
- value for the fieldgravity
flags
- value for the fieldflags
script
- value for the fieldscript
language
- value for the fieldlanguage
extraAttrs
- value for the fieldextraAttrs
arena
- to control the memory allocation scope
-
Analysis
public Analysis(MemorySegment shapeEngine, MemorySegment langEngine, Font font, byte level, byte gravity, byte flags, byte script, Language language, SList<MemorySegment> extraAttrs) Allocate a new Analysis with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
shapeEngine
- value for the fieldshapeEngine
langEngine
- value for the fieldlangEngine
font
- value for the fieldfont
level
- value for the fieldlevel
gravity
- value for the fieldgravity
flags
- value for the fieldflags
script
- value for the fieldscript
language
- value for the fieldlanguage
extraAttrs
- value for the fieldextraAttrs
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readShapeEngine
Read the value of the fieldshape_engine
.- Returns:
- The value of the field
shape_engine
-
writeShapeEngine
Write a value in the fieldshape_engine
.- Parameters:
shapeEngine
- The new value for the fieldshape_engine
-
readLangEngine
Read the value of the fieldlang_engine
.- Returns:
- The value of the field
lang_engine
-
writeLangEngine
Write a value in the fieldlang_engine
.- Parameters:
langEngine
- The new value for the fieldlang_engine
-
readFont
-
writeFont
Write a value in the fieldfont
.- Parameters:
font
- The new value for the fieldfont
-
readLevel
public byte readLevel()Read the value of the fieldlevel
.- Returns:
- The value of the field
level
-
writeLevel
public void writeLevel(byte level) Write a value in the fieldlevel
.- Parameters:
level
- The new value for the fieldlevel
-
readGravity
public byte readGravity()Read the value of the fieldgravity
.- Returns:
- The value of the field
gravity
-
writeGravity
public void writeGravity(byte gravity) Write a value in the fieldgravity
.- Parameters:
gravity
- The new value for the fieldgravity
-
readFlags
public byte readFlags()Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
public void writeFlags(byte flags) Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-
readScript
public byte readScript()Read the value of the fieldscript
.- Returns:
- The value of the field
script
-
writeScript
public void writeScript(byte script) Write a value in the fieldscript
.- Parameters:
script
- The new value for the fieldscript
-
readLanguage
Read the value of the fieldlanguage
.- Returns:
- The value of the field
language
-
writeLanguage
Write a value in the fieldlanguage
.- Parameters:
language
- The new value for the fieldlanguage
-
readExtraAttrs
Read the value of the fieldextra_attrs
.- Returns:
- The value of the field
extra_attrs
-
writeExtraAttrs
Write a value in the fieldextra_attrs
.- Parameters:
extraAttrs
- The new value for the fieldextra_attrs
-