Package org.freedesktop.harfbuzz
Class GlyphInfo
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the GlyphInfo classint
Read the value of the fieldcluster
.Read the value of the fieldcodepoint
.readMask()
Read the value of the fieldmask
.readVar1()
Read the value of the fieldvar1
.readVar2()
Read the value of the fieldvar2
.void
writeCluster
(int cluster) Write a value in the fieldcluster
.void
writeCodepoint
(Codepoint codepoint) Write a value in the fieldcodepoint
.void
Write a value in the fieldmask
.void
Write a value in the fieldvar1
.void
Write a value in the fieldvar2
.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
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 fieldcodepoint
mask
- value for the fieldmask
cluster
- value for the fieldcluster
var1
- value for the fieldvar1
var2
- value for the fieldvar2
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:
codepoint
- value for the fieldcodepoint
mask
- value for the fieldmask
cluster
- value for the fieldcluster
var1
- value for the fieldvar1
var2
- 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
-
writeVar1
Write a value in the fieldvar1
.- Parameters:
var1
- The new value for the fieldvar1
-
readVar2
-
writeVar2
Write a value in the fieldvar2
.- Parameters:
var2
- The new value for the fieldvar2
-