Package org.freedesktop.harfbuzz
Class ColorLine
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.ColorLine
-
Constructor Summary
ConstructorDescriptionAllocate a new ColorLine.Allocate a new ColorLine.ColorLine
(MemorySegment address) Create a ColorLine proxy instance for the provided memory address.ColorLine
(MemorySegment data, ColorLineGetColorStopsFunc getColorStops, MemorySegment getColorStopsUserData, ColorLineGetExtendFunc getExtend, MemorySegment getExtendUserData) Allocate a new ColorLine with the fields set to the provided values.ColorLine
(MemorySegment data, ColorLineGetColorStopsFunc getColorStops, MemorySegment getColorStopsUserData, ColorLineGetExtendFunc getExtend, MemorySegment getExtendUserData, Arena arena) Allocate a new ColorLine 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 ColorLine classreadData()
Read the value of the fielddata
.Read the value of the fieldget_color_stops
.Read the value of the fieldget_color_stops_user_data
.Read the value of the fieldget_extend
.Read the value of the fieldget_extend_user_data
.void
writeData
(MemorySegment data) Write a value in the fielddata
.void
writeGetColorStops
(ColorLineGetColorStopsFunc getColorStops, Arena _arena) Write a value in the fieldget_color_stops
.void
writeGetColorStopsUserData
(MemorySegment getColorStopsUserData) Write a value in the fieldget_color_stops_user_data
.void
writeGetExtend
(ColorLineGetExtendFunc getExtend, Arena _arena) Write a value in the fieldget_extend
.void
writeGetExtendUserData
(MemorySegment getExtendUserData) Write a value in the fieldget_extend_user_data
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ColorLine
Create a ColorLine proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ColorLine
Allocate a new ColorLine.- Parameters:
arena
- to control the memory allocation scope
-
ColorLine
public ColorLine()Allocate a new ColorLine. The memory is allocated withArena.ofAuto()
. -
ColorLine
public ColorLine(MemorySegment data, ColorLineGetColorStopsFunc getColorStops, MemorySegment getColorStopsUserData, ColorLineGetExtendFunc getExtend, MemorySegment getExtendUserData, Arena arena) Allocate a new ColorLine with the fields set to the provided values.- Parameters:
data
- value for the fielddata
getColorStops
- value for the fieldgetColorStops
getColorStopsUserData
- value for the fieldgetColorStopsUserData
getExtend
- value for the fieldgetExtend
getExtendUserData
- value for the fieldgetExtendUserData
arena
- to control the memory allocation scope
-
ColorLine
public ColorLine(MemorySegment data, ColorLineGetColorStopsFunc getColorStops, MemorySegment getColorStopsUserData, ColorLineGetExtendFunc getExtend, MemorySegment getExtendUserData) Allocate a new ColorLine with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
data
- value for the fielddata
getColorStops
- value for the fieldgetColorStops
getColorStopsUserData
- value for the fieldgetColorStopsUserData
getExtend
- value for the fieldgetExtend
getExtendUserData
- value for the fieldgetExtendUserData
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readData
Read the value of the fielddata
.- Returns:
- The value of the field
data
-
writeData
Write a value in the fielddata
.- Parameters:
data
- The new value for the fielddata
-
readGetColorStops
Read the value of the fieldget_color_stops
.- Returns:
- The value of the field
get_color_stops
-
writeGetColorStops
Write a value in the fieldget_color_stops
.- Parameters:
getColorStops
- The new value for the fieldget_color_stops
_arena
- to control the memory allocation scope
-
readGetColorStopsUserData
Read the value of the fieldget_color_stops_user_data
.- Returns:
- The value of the field
get_color_stops_user_data
-
writeGetColorStopsUserData
Write a value in the fieldget_color_stops_user_data
.- Parameters:
getColorStopsUserData
- The new value for the fieldget_color_stops_user_data
-
readGetExtend
Read the value of the fieldget_extend
.- Returns:
- The value of the field
get_extend
-
writeGetExtend
Write a value in the fieldget_extend
.- Parameters:
getExtend
- The new value for the fieldget_extend
_arena
- to control the memory allocation scope
-
readGetExtendUserData
Read the value of the fieldget_extend_user_data
.- Returns:
- The value of the field
get_extend_user_data
-
writeGetExtendUserData
Write a value in the fieldget_extend_user_data
.- Parameters:
getExtendUserData
- The new value for the fieldget_extend_user_data
-