Interface ColorLineGetColorStopsFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface ColorLineGetColorStopsFunc
extends FunctionPointer
Functional interface declaration of the ColorLineGetColorStopsFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintrun(ColorLine colorLine, @Nullable MemorySegment colorLineData, int start, @Nullable Out<ColorStop[]> colorStops) A virtual method for thehb_color_line_tto fetch color stops.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, int, MemorySegment, MemorySegment, MemorySegment)method.default intupcall(MemorySegment colorLine, MemorySegment colorLineData, int start, MemorySegment count, MemorySegment colorStops, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
int run(ColorLine colorLine, @Nullable MemorySegment colorLineData, int start, @Nullable Out<ColorStop[]> colorStops) A virtual method for thehb_color_line_tto fetch color stops.- Parameters:
colorLine- ahb_color_line_tobjectcolorLineData- the data accompanyingcolorLinestart- the index of the first color stop to returncolorStops- Array ofhb_color_stop_tto populate- Returns:
- the total number of color stops in
colorLine - Since:
- 7.0.0
-
upcall
default int upcall(MemorySegment colorLine, MemorySegment colorLineData, int start, MemorySegment count, MemorySegment colorStops, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(ColorLine, MemorySegment, int, Out)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, int, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-