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 TypeMethodDescriptionvoid
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, ifhandleId
is aGLib.Source
ID,Source.remove(int)
can be used.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(int)
method.default void
upcall
(int handleId) Theupcall
method 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, ifhandleId
is aGLib.Source
ID,Source.remove(int)
can be used. -
upcall
default void upcall(int handleId) Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-