Package org.freedesktop.harfbuzz
Class DrawState
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.DrawState
-
Constructor Summary
ConstructorDescriptionAllocate a new DrawState.Allocate a new DrawState.DrawState
(MemorySegment address) Create a DrawState proxy instance for the provided memory address.Allocate a new DrawState with the fields set to the provided values.DrawState
(Bool pathOpen, float pathStartX, float pathStartY, float currentX, float currentY, Arena arena) Allocate a new DrawState 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 DrawState classfloat
Read the value of the fieldcurrent_x
.float
Read the value of the fieldcurrent_y
.Read the value of the fieldpath_open
.float
Read the value of the fieldpath_start_x
.float
Read the value of the fieldpath_start_y
.void
writeCurrentX
(float currentX) Write a value in the fieldcurrent_x
.void
writeCurrentY
(float currentY) Write a value in the fieldcurrent_y
.void
writePathOpen
(Bool pathOpen) Write a value in the fieldpath_open
.void
writePathStartX
(float pathStartX) Write a value in the fieldpath_start_x
.void
writePathStartY
(float pathStartY) Write a value in the fieldpath_start_y
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DrawState
Create a DrawState proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DrawState
Allocate a new DrawState.- Parameters:
arena
- to control the memory allocation scope
-
DrawState
public DrawState()Allocate a new DrawState. The memory is allocated withArena.ofAuto()
. -
DrawState
public DrawState(Bool pathOpen, float pathStartX, float pathStartY, float currentX, float currentY, Arena arena) Allocate a new DrawState with the fields set to the provided values.- Parameters:
pathOpen
- value for the fieldpathOpen
pathStartX
- value for the fieldpathStartX
pathStartY
- value for the fieldpathStartY
currentX
- value for the fieldcurrentX
currentY
- value for the fieldcurrentY
arena
- to control the memory allocation scope
-
DrawState
Allocate a new DrawState with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
pathOpen
- value for the fieldpathOpen
pathStartX
- value for the fieldpathStartX
pathStartY
- value for the fieldpathStartY
currentX
- value for the fieldcurrentX
currentY
- value for the fieldcurrentY
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readPathOpen
Read the value of the fieldpath_open
.- Returns:
- The value of the field
path_open
-
writePathOpen
Write a value in the fieldpath_open
.- Parameters:
pathOpen
- The new value for the fieldpath_open
-
readPathStartX
public float readPathStartX()Read the value of the fieldpath_start_x
.- Returns:
- The value of the field
path_start_x
-
writePathStartX
public void writePathStartX(float pathStartX) Write a value in the fieldpath_start_x
.- Parameters:
pathStartX
- The new value for the fieldpath_start_x
-
readPathStartY
public float readPathStartY()Read the value of the fieldpath_start_y
.- Returns:
- The value of the field
path_start_y
-
writePathStartY
public void writePathStartY(float pathStartY) Write a value in the fieldpath_start_y
.- Parameters:
pathStartY
- The new value for the fieldpath_start_y
-
readCurrentX
public float readCurrentX()Read the value of the fieldcurrent_x
.- Returns:
- The value of the field
current_x
-
writeCurrentX
public void writeCurrentX(float currentX) Write a value in the fieldcurrent_x
.- Parameters:
currentX
- The new value for the fieldcurrent_x
-
readCurrentY
public float readCurrentY()Read the value of the fieldcurrent_y
.- Returns:
- The value of the field
current_y
-
writeCurrentY
public void writeCurrentY(float currentY) Write a value in the fieldcurrent_y
.- Parameters:
currentY
- The new value for the fieldcurrent_y
-