Interface GetTableTagsFunc
- 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 GetTableTagsFunc
extends FunctionPointer
Functional interface declaration of the GetTableTagsFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintCallback function for hb_face_get_table_tags().default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment, MemorySegment, MemorySegment)method.default intupcall(MemorySegment face, int startOffset, MemorySegment tableCount, MemorySegment tableTags, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
Callback function for hb_face_get_table_tags().- Parameters:
face- A face objectstartOffset- The index of first table tag to retrievetableTags- The array of table tags found- Returns:
- Total number of tables, or zero if it is not possible to list
- Since:
- 10.0.0
-
upcall
default int upcall(MemorySegment face, int startOffset, MemorySegment tableCount, MemorySegment tableTags, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(Face, int, Out)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-