- 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 TypeMethodDescriptionvoidfinish(RasterSource pattern) Called when the pattern (or a copy thereof) is no longer required.default MemorySegmenttoCallback(Arena arena) Generates an upcall stub, a C function pointer that will callupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment).default voidupcall(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
-