Interface UnicodeMirroringFunc
- 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 UnicodeMirroringFunc
extends FunctionPointer
Functional interface declaration of the UnicodeMirroringFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(UnicodeFuncs ufuncs, Codepoint unicode) A virtual method for thehb_unicode_funcs_tstructure.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment)method.default intupcall(MemorySegment ufuncs, int unicode, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
A virtual method for the
hb_unicode_funcs_tstructure.This method should retrieve the Bi-Directional Mirroring Glyph code point for a specified Unicode code point.
Note: If a code point does not have a specified Bi-Directional Mirroring Glyph defined, the method should return the original code point. - Parameters:
ufuncs- A Unicode-functions structureunicode- The code point to query- Returns:
- The
hb_codepoint_tof the Mirroring Glyph forunicode
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(UnicodeFuncs, Codepoint)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-