- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
RasterSourceCopyFunc is the type of function which is called when the pattern
gets copied as a normal part of rendering.
- Since:
- 1.12
-
Method Summary
Modifier and TypeMethodDescriptioncopy(RasterSource pattern, RasterSource other) Called when the pattern gets copied as a normal part of rendering.default MemorySegmenttoCallback(Arena arena) Generates an upcall stub, a C function pointer that will callupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment).default intupcall(MemorySegment pattern, MemorySegment callbackData, MemorySegment other) The callback that is executed by native code.
-
Method Details
-
copy
Called when the pattern gets copied as a normal part of rendering.- Parameters:
pattern- the pattern that was copied toother- the pattern being used as the source for the copy- Returns:
Status.SUCCESSon success, or one of theStatuserror codes for failure.- Since:
- 1.12
-
upcall
The callback that is executed by native code. This method marshals the parameters and callscopy(RasterSource, RasterSource).- Parameters:
pattern- the pattern being rendered fromcallbackData- ignoredother- the pattern being used as the source for the copy- Returns:
Status.SUCCESSon success, or one of theStatuserror codes for failure.- Since:
- 1.12
-
toCallback
Generates an upcall stub, a C function pointer that will callupcall(java.lang.foreign.MemorySegment, 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
-