Package org.freedesktop.harfbuzz
Class ColorLine
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.ColorLine
- All Implemented Interfaces:
Proxy
A struct containing color information for a gradient.
- Since:
- 7.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the ColorLine classreadData()Read the value of the fielddata.@Nullable ColorLineGetColorStopsFuncRead the value of the fieldget_color_stops.Read the value of the fieldget_color_stops_user_data.@Nullable ColorLineGetExtendFuncRead the value of the fieldget_extend.Read the value of the fieldget_extend_user_data.voidwriteData(MemorySegment data) Write a value in the fielddata.voidwriteGetColorStops(@Nullable ColorLineGetColorStopsFunc getColorStops, Arena _arena) Write a value in the fieldget_color_stops.voidwriteGetColorStopsUserData(MemorySegment getColorStopsUserData) Write a value in the fieldget_color_stops_user_data.voidwriteGetExtend(@Nullable ColorLineGetExtendFunc getExtend, Arena _arena) Write a value in the fieldget_extend.voidwriteGetExtendUserData(MemorySegment getExtendUserData) Write a value in the fieldget_extend_user_data.Methods inherited from class org.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 fielddatagetColorStops- value for the fieldgetColorStopsgetColorStopsUserData- value for the fieldgetColorStopsUserDatagetExtend- value for the fieldgetExtendgetExtendUserData- value for the fieldgetExtendUserDataarena- 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 fielddatagetColorStops- value for the fieldgetColorStopsgetColorStopsUserData- value for the fieldgetColorStopsUserDatagetExtend- value for the fieldgetExtendgetExtendUserData- 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
-