Package org.gnome.pango
Class Analysis
java.lang.Object
org.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
ConstructorsConstructorDescriptionAnalysis()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 MemoryLayoutThe memory layout of the native struct.Read the value of the fieldextra_attrs.byteRead the value of the fieldflags.readFont()Read the value of the fieldfont.byteRead the value of the fieldgravity.Read the value of the fieldlang_engine.Read the value of the fieldlanguage.byteRead the value of the fieldlevel.byteRead the value of the fieldscript.Read the value of the fieldshape_engine.voidwriteExtraAttrs(SList<MemorySegment> extraAttrs) Write a value in the fieldextra_attrs.voidwriteFlags(byte flags) Write a value in the fieldflags.voidWrite a value in the fieldfont.voidwriteGravity(byte gravity) Write a value in the fieldgravity.voidwriteLangEngine(MemorySegment langEngine) Write a value in the fieldlang_engine.voidwriteLanguage(Language language) Write a value in the fieldlanguage.voidwriteLevel(byte level) Write a value in the fieldlevel.voidwriteScript(byte script) Write a value in the fieldscript.voidwriteShapeEngine(MemorySegment shapeEngine) Write a value in the fieldshape_engine.Methods inherited from class org.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 fieldshapeEnginelangEngine- value for the fieldlangEnginefont- value for the fieldfontlevel- value for the fieldlevelgravity- value for the fieldgravityflags- value for the fieldflagsscript- value for the fieldscriptlanguage- value for the fieldlanguageextraAttrs- value for the fieldextraAttrsarena- 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 fieldshapeEnginelangEngine- value for the fieldlangEnginefont- value for the fieldfontlevel- value for the fieldlevelgravity- value for the fieldgravityflags- value for the fieldflagsscript- value for the fieldscriptlanguage- value for the fieldlanguageextraAttrs- 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
-