Package org.freedesktop.harfbuzz
Class DrawState
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.DrawState
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the DrawState classfloatRead the value of the fieldcurrent_x.floatRead the value of the fieldcurrent_y.Read the value of the fieldpath_open.floatRead the value of the fieldpath_start_x.floatRead the value of the fieldpath_start_y.voidwriteCurrentX(float currentX) Write a value in the fieldcurrent_x.voidwriteCurrentY(float currentY) Write a value in the fieldcurrent_y.voidwritePathOpen(Bool pathOpen) Write a value in the fieldpath_open.voidwritePathStartX(float pathStartX) Write a value in the fieldpath_start_x.voidwritePathStartY(float pathStartY) Write a value in the fieldpath_start_y.Methods inherited from class org.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 fieldpathOpenpathStartX- value for the fieldpathStartXpathStartY- value for the fieldpathStartYcurrentX- value for the fieldcurrentXcurrentY- value for the fieldcurrentYarena- 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 fieldpathOpenpathStartX- value for the fieldpathStartXpathStartY- value for the fieldpathStartYcurrentX- value for the fieldcurrentXcurrentY- 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
-