Package org.freedesktop.harfbuzz
Class GlyphPosition
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.GlyphPosition
- All Implemented Interfaces:
Proxy
The
hb_glyph_position_t
is the structure that holds the positions of the
glyph in both horizontal and vertical directions. All positions in
hb_glyph_position_t
are relative to the current point.-
Constructor Summary
ConstructorDescriptionAllocate a new GlyphPosition.GlyphPosition
(Arena arena) Allocate a new GlyphPosition.GlyphPosition
(MemorySegment address) Create a GlyphPosition proxy instance for the provided memory address.Allocate a new GlyphPosition with the fields set to the provided values.GlyphPosition
(Position xAdvance, Position yAdvance, Position xOffset, Position yOffset, VarInt var, Arena arena) Allocate a new GlyphPosition 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 GlyphPosition classreadVar()
Read the value of the fieldvar
.Read the value of the fieldx_advance
.Read the value of the fieldx_offset
.Read the value of the fieldy_advance
.Read the value of the fieldy_offset
.void
Write a value in the fieldvar
.void
writeXAdvance
(Position xAdvance) Write a value in the fieldx_advance
.void
writeXOffset
(Position xOffset) Write a value in the fieldx_offset
.void
writeYAdvance
(Position yAdvance) Write a value in the fieldy_advance
.void
writeYOffset
(Position yOffset) Write a value in the fieldy_offset
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
GlyphPosition
Create a GlyphPosition proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
GlyphPosition
Allocate a new GlyphPosition.- Parameters:
arena
- to control the memory allocation scope
-
GlyphPosition
public GlyphPosition()Allocate a new GlyphPosition. The memory is allocated withArena.ofAuto()
. -
GlyphPosition
public GlyphPosition(Position xAdvance, Position yAdvance, Position xOffset, Position yOffset, VarInt var, Arena arena) Allocate a new GlyphPosition with the fields set to the provided values.- Parameters:
xAdvance
- value for the fieldxAdvance
yAdvance
- value for the fieldyAdvance
xOffset
- value for the fieldxOffset
yOffset
- value for the fieldyOffset
var
- value for the fieldvar
arena
- to control the memory allocation scope
-
GlyphPosition
public GlyphPosition(Position xAdvance, Position yAdvance, Position xOffset, Position yOffset, VarInt var) Allocate a new GlyphPosition with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
xAdvance
- value for the fieldxAdvance
yAdvance
- value for the fieldyAdvance
xOffset
- value for the fieldxOffset
yOffset
- value for the fieldyOffset
var
- value for the fieldvar
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readXAdvance
Read the value of the fieldx_advance
.- Returns:
- The value of the field
x_advance
-
writeXAdvance
Write a value in the fieldx_advance
.- Parameters:
xAdvance
- The new value for the fieldx_advance
-
readYAdvance
Read the value of the fieldy_advance
.- Returns:
- The value of the field
y_advance
-
writeYAdvance
Write a value in the fieldy_advance
.- Parameters:
yAdvance
- The new value for the fieldy_advance
-
readXOffset
Read the value of the fieldx_offset
.- Returns:
- The value of the field
x_offset
-
writeXOffset
Write a value in the fieldx_offset
.- Parameters:
xOffset
- The new value for the fieldx_offset
-
readYOffset
Read the value of the fieldy_offset
.- Returns:
- The value of the field
y_offset
-
writeYOffset
Write a value in the fieldy_offset
.- Parameters:
yOffset
- The new value for the fieldy_offset
-
readVar
-
writeVar
Write a value in the fieldvar
.- Parameters:
var
- The new value for the fieldvar
-