Interface UnicodeGeneralCategoryFunc
- 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 UnicodeGeneralCategoryFunc
extends FunctionPointer
Functional interface declaration of the UnicodeGeneralCategoryFunc 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 General Category property for a specified Unicode code point.
- Parameters:
ufuncs- A Unicode-functions structureunicode- The code point to query- Returns:
- The
hb_unicode_general_category_tofunicode
-
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
-