org.purejava.appindicator.GClearHandleFunc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libappindicator-gtk3-java-full Show documentation
Show all versions of libappindicator-gtk3-java-full Show documentation
Java bindings for libappindicator-gtk3 in 100% pure Java
// Generated by jextract
package org.purejava.appindicator;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
/**
* {@snippet :
* void (*GClearHandleFunc)(unsigned int handle_id);
* }
*/
public interface GClearHandleFunc {
void apply(int handle_id);
static MemorySegment allocate(GClearHandleFunc fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$276.const$3, fi, constants$80.const$1, scope);
}
static GClearHandleFunc ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (int _handle_id) -> {
try {
constants$122.const$4.invokeExact(symbol, _handle_id);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}