- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
RasterSourceFinishFunc is the type of function which is called when the
pattern (or a copy thereof) is no longer required.
- Since:
- 1.12
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish
(RasterSource pattern) Called when the pattern (or a copy thereof) is no longer required.default MemorySegment
toCallback
(Arena arena) Generates an upcall stub, a C function pointer that will callupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
.default void
upcall
(MemorySegment pattern, MemorySegment callbackData) The callback that is executed by native code.
-
Method Details
-
finish
Called when the pattern (or a copy thereof) is no longer required.- Parameters:
pattern
- the pattern being rendered from- Since:
- 1.12
-
upcall
The callback that is executed by native code. This method marshals the parameters and callsfinish(RasterSource)
.- Parameters:
pattern
- the pattern being rendered fromcallbackData
- ignored- Since:
- 1.12
-
toCallback
Generates an upcall stub, a C function pointer that will callupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
.- Parameters:
arena
- the arena in which the upcall stub will be allocated- Returns:
- the function pointer of the upcall stub
- Since:
- 1.12
-