Interface RenderReplayNodeFilter
- 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 RenderReplayNodeFilter
extends FunctionPointer
Functional interface declaration of the RenderReplayNodeFilter callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(RenderReplay replay, RenderNode node) A function to replay a node.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment replay, MemorySegment node, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
A function to replay a node.
The node may be returned unmodified.
The node may be discarded by returning
null.If you do not want to do any handling yourself, call
RenderReplay.default_(RenderNode)to use the default handler that calls your function on the children of the node.- Parameters:
replay- The replay object used to replay the nodenode- The node to replay- Returns:
- The replayed node
- Since:
- 4.22
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(RenderReplay, RenderNode)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-