Package org.freedesktop.harfbuzz
Class GlyphExtents
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.GlyphExtents
- All Implemented Interfaces:
Proxy
Glyph extent values, measured in font units.
Note that height is negative, in coordinate systems that grow up.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new GlyphExtents.GlyphExtents(Arena arena) Allocate a new GlyphExtents.GlyphExtents(MemorySegment address) Create a GlyphExtents proxy instance for the provided memory address.GlyphExtents(Position xBearing, Position yBearing, Position width, Position height) Allocate a new GlyphExtents with the fields set to the provided values.Allocate a new GlyphExtents 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 fieldheight.Read the value of the fieldwidth.Read the value of the fieldx_bearing.Read the value of the fieldy_bearing.voidwriteHeight(Position height) Write a value in the fieldheight.voidwriteWidth(Position width) Write a value in the fieldwidth.voidwriteXBearing(Position xBearing) Write a value in the fieldx_bearing.voidwriteYBearing(Position yBearing) Write a value in the fieldy_bearing.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
GlyphExtents
Create a GlyphExtents proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
GlyphExtents
Allocate a new GlyphExtents.- Parameters:
arena- to control the memory allocation scope
-
GlyphExtents
public GlyphExtents()Allocate a new GlyphExtents. The memory is allocated withArena.ofAuto(). -
GlyphExtents
public GlyphExtents(Position xBearing, Position yBearing, Position width, Position height, Arena arena) Allocate a new GlyphExtents with the fields set to the provided values.- Parameters:
xBearing- value for the fieldxBearingyBearing- value for the fieldyBearingwidth- value for the fieldwidthheight- value for the fieldheightarena- to control the memory allocation scope
-
GlyphExtents
Allocate a new GlyphExtents with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
xBearing- value for the fieldxBearingyBearing- value for the fieldyBearingwidth- value for the fieldwidthheight- value for the fieldheight
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readXBearing
Read the value of the fieldx_bearing.- Returns:
- The value of the field
x_bearing
-
writeXBearing
Write a value in the fieldx_bearing.- Parameters:
xBearing- The new value for the fieldx_bearing
-
readYBearing
Read the value of the fieldy_bearing.- Returns:
- The value of the field
y_bearing
-
writeYBearing
Write a value in the fieldy_bearing.- Parameters:
yBearing- The new value for the fieldy_bearing
-
readWidth
Read the value of the fieldwidth.- Returns:
- The value of the field
width
-
writeWidth
Write a value in the fieldwidth.- Parameters:
width- The new value for the fieldwidth
-
readHeight
Read the value of the fieldheight.- Returns:
- The value of the field
height
-
writeHeight
Write a value in the fieldheight.- Parameters:
height- The new value for the fieldheight
-