Package org.freedesktop.harfbuzz
Class GlyphExtents
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The 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
.void
writeHeight
(Position height) Write a value in the fieldheight
.void
writeWidth
(Position width) Write a value in the fieldwidth
.void
writeXBearing
(Position xBearing) Write a value in the fieldx_bearing
.void
writeYBearing
(Position yBearing) Write a value in the fieldy_bearing
.Methods inherited from class io.github.jwharm.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 fieldxBearing
yBearing
- value for the fieldyBearing
width
- value for the fieldwidth
height
- value for the fieldheight
arena
- 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 fieldxBearing
yBearing
- value for the fieldyBearing
width
- value for the fieldwidth
height
- 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
-