Interface PaintColorGlyphFunc
- 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 PaintColorGlyphFunc
extends FunctionPointer
Functional interface declaration of the PaintColorGlyphFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(PaintFuncs funcs, @Nullable MemorySegment paintData, Codepoint glyph, Font font) A virtual method for thehb_paint_funcs_tto render a color glyph by glyph index.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, int, MemorySegment, MemorySegment)method.default intupcall(MemorySegment funcs, MemorySegment paintData, int glyph, MemorySegment font, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
A virtual method for thehb_paint_funcs_tto render a color glyph by glyph index.- Parameters:
funcs- paint functions objectpaintData- The data accompanying the paint functions in hb_font_paint_glyph()glyph- the glyph IDfont- the font- Returns:
trueif the glyph was painted,falseotherwise.- Since:
- 8.2.0
-
upcall
default int upcall(MemorySegment funcs, MemorySegment paintData, int glyph, MemorySegment font, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(PaintFuncs, MemorySegment, Codepoint, Font)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, int, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-