Package org.freedesktop.harfbuzz
Class GlyphPosition
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the GlyphPosition class@Nullable VarIntreadVar()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.voidWrite a value in the fieldvar.voidwriteXAdvance(Position xAdvance) Write a value in the fieldx_advance.voidwriteXOffset(Position xOffset) Write a value in the fieldx_offset.voidwriteYAdvance(Position yAdvance) Write a value in the fieldy_advance.voidwriteYOffset(Position yOffset) Write a value in the fieldy_offset.Methods inherited from class org.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 fieldxAdvanceyAdvance- value for the fieldyAdvancexOffset- value for the fieldxOffsetyOffset- value for the fieldyOffsetvar- value for the fieldvararena- 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 fieldxAdvanceyAdvance- value for the fieldyAdvancexOffset- value for the fieldxOffsetyOffset- value for the fieldyOffsetvar- 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
Read the value of the fieldvar.- Returns:
- The value of the field
var
-
writeVar
Write a value in the fieldvar.- Parameters:
var- The new value for the fieldvar
-