Package org.freedesktop.harfbuzz
Class GlyphInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.GlyphInfo
- All Implemented Interfaces:
Proxy
The
hb_glyph_info_t is the structure that holds information about the
glyphs and their relation to input text.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new GlyphInfo.Allocate a new GlyphInfo.GlyphInfo(MemorySegment address) Create a GlyphInfo proxy instance for the provided memory address.Allocate a new GlyphInfo with the fields set to the provided values.Allocate a new GlyphInfo 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 GlyphInfo classintRead the value of the fieldcluster.Read the value of the fieldcodepoint.readMask()Read the value of the fieldmask.@Nullable VarIntreadVar1()Read the value of the fieldvar1.@Nullable VarIntreadVar2()Read the value of the fieldvar2.voidwriteCluster(int cluster) Write a value in the fieldcluster.voidwriteCodepoint(Codepoint codepoint) Write a value in the fieldcodepoint.voidWrite a value in the fieldmask.voidWrite a value in the fieldvar1.voidWrite a value in the fieldvar2.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
public GlyphInfo(Codepoint codepoint, Mask mask, int cluster, VarInt var1, VarInt var2, Arena arena) Allocate a new GlyphInfo with the fields set to the provided values.- Parameters:
codepoint- value for the fieldcodepointmask- value for the fieldmaskcluster- value for the fieldclustervar1- value for the fieldvar1var2- value for the fieldvar2arena- 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:
codepoint- value for the fieldcodepointmask- value for the fieldmaskcluster- value for the fieldclustervar1- value for the fieldvar1var2- value for the fieldvar2
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readCodepoint
Read the value of the fieldcodepoint.- Returns:
- The value of the field
codepoint
-
writeCodepoint
Write a value in the fieldcodepoint.- Parameters:
codepoint- The new value for the fieldcodepoint
-
readMask
-
writeMask
Write a value in the fieldmask.- Parameters:
mask- The new value for the fieldmask
-
readCluster
public int readCluster()Read the value of the fieldcluster.- Returns:
- The value of the field
cluster
-
writeCluster
public void writeCluster(int cluster) Write a value in the fieldcluster.- Parameters:
cluster- The new value for the fieldcluster
-
readVar1
Read the value of the fieldvar1.- Returns:
- The value of the field
var1
-
writeVar1
Write a value in the fieldvar1.- Parameters:
var1- The new value for the fieldvar1
-
readVar2
Read the value of the fieldvar2.- Returns:
- The value of the field
var2
-
writeVar2
Write a value in the fieldvar2.- Parameters:
var2- The new value for the fieldvar2
-