Package org.gnome.glib
Interface ClearHandleFunc
- 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("io.github.jwharm.JavaGI")
public interface ClearHandleFunc
extends FunctionPointer
Functional interface declaration of the
ClearHandleFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(int handleId) Specifies the type of function passed toGLib.clearHandleId(java.lang.foreign.MemorySegment, org.gnome.glib.ClearHandleFunc)The implementation is expected to free the resource identified byhandleId;for instance, ifhandleIdis aGLib.SourceID,Source.remove(int)can be used.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(int)method.default voidupcall(int handleId) Theupcallmethod is called from native code.
-
Method Details
-
run
void run(int handleId) Specifies the type of function passed toGLib.clearHandleId(java.lang.foreign.MemorySegment, org.gnome.glib.ClearHandleFunc)The implementation is expected to free the resource identified byhandleId;for instance, ifhandleIdis aGLib.SourceID,Source.remove(int)can be used.- Since:
- 2.56
-
upcall
default void upcall(int handleId) Theupcallmethod is called from native code. The parameters are marshaled andrun(int)is executed. -
toCallback
Creates a native function pointer to theupcall(int)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-