- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
RasterSourceReleaseFunc is the type of function which is called when the
pixel data is no longer being access by the pattern for the rendering
operation. Typically this function will simply destroy the surface created
during acquire.
- Since:
- 1.12
-
Method Summary
Modifier and TypeMethodDescriptionvoid
release
(RasterSource pattern, Surface target) Called when the pixel data is no longer being access by the pattern for the rendering operation.default MemorySegment
toCallback
(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 void
upcall
(MemorySegment pattern, MemorySegment callbackData, MemorySegment target) The callback that is executed by native code.
-
Method Details
-
release
Called when the pixel data is no longer being access by the pattern for the rendering operation. Typically this function will simply destroy the surface created during acquire.- Parameters:
pattern
- the pattern being rendered fromtarget
- the surface created during acquire- Since:
- 1.12
-
upcall
The callback that is executed by native code. This method marshals the parameters and callsrelease(RasterSource, Surface)
.- Parameters:
pattern
- the pattern being rendered fromcallbackData
- ignoredtarget
- the surface created during acquire- 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
-