Interface RenderReplayFontFilter
- 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 RenderReplayFontFilter
extends FunctionPointer
Functional interface declaration of the RenderReplayFontFilter callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(RenderReplay replay, Font font) A function that filters fonts.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment replay, MemorySegment font, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
A function that filters fonts.
The function will be called by the default replay function for all nodes with fonts. They will then generate a node using the returned font.
It is valid for the function to return the passed in font if the font shuld not be modified.
- Parameters:
replay- The replay object used to replay the nodefont- The font to filter- Returns:
- The filtered font
- Since:
- 4.22
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(RenderReplay, Font)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
-