Package org.freedesktop.harfbuzz
Class FontExtents
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.FontExtents
- All Implemented Interfaces:
Proxy
Font-wide extent values, measured in scaled units.
Note that typically ascender is positive and descender
negative, in coordinate systems that grow up.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new FontExtents.FontExtents(Arena arena) Allocate a new FontExtents.FontExtents(MemorySegment address) Create a FontExtents proxy instance for the provided memory address.FontExtents(Position ascender, Position descender, Position lineGap) Allocate a new FontExtents with the fields set to the provided values.FontExtents(Position ascender, Position descender, Position lineGap, Arena arena) Allocate a new FontExtents 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 fieldascender.Read the value of the fielddescender.Read the value of the fieldline_gap.voidwriteAscender(Position ascender) Write a value in the fieldascender.voidwriteDescender(Position descender) Write a value in the fielddescender.voidwriteLineGap(Position lineGap) Write a value in the fieldline_gap.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
FontExtents
Create a FontExtents proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
FontExtents
Allocate a new FontExtents.- Parameters:
arena- to control the memory allocation scope
-
FontExtents
public FontExtents()Allocate a new FontExtents. The memory is allocated withArena.ofAuto(). -
FontExtents
Allocate a new FontExtents with the fields set to the provided values.- Parameters:
ascender- value for the fieldascenderdescender- value for the fielddescenderlineGap- value for the fieldlineGaparena- to control the memory allocation scope
-
FontExtents
Allocate a new FontExtents with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
ascender- value for the fieldascenderdescender- value for the fielddescenderlineGap- value for the fieldlineGap
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readAscender
Read the value of the fieldascender.- Returns:
- The value of the field
ascender
-
writeAscender
Write a value in the fieldascender.- Parameters:
ascender- The new value for the fieldascender
-
readDescender
Read the value of the fielddescender.- Returns:
- The value of the field
descender
-
writeDescender
Write a value in the fielddescender.- Parameters:
descender- The new value for the fielddescender
-
readLineGap
Read the value of the fieldline_gap.- Returns:
- The value of the field
line_gap
-
writeLineGap
Write a value in the fieldline_gap.- Parameters:
lineGap- The new value for the fieldline_gap
-