org.purejava.appindicator.GtkTreeViewRowSeparatorFunc 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 :
* int (*GtkTreeViewRowSeparatorFunc)(struct _GtkTreeModel* model,struct _GtkTreeIter* iter,void* data);
* }
*/
public interface GtkTreeViewRowSeparatorFunc {
int apply(java.lang.foreign.MemorySegment a, java.lang.foreign.MemorySegment b, java.lang.foreign.MemorySegment user_data);
static MemorySegment allocate(GtkTreeViewRowSeparatorFunc fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2474.const$3, fi, constants$12.const$2, scope);
}
static GtkTreeViewRowSeparatorFunc ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _a, java.lang.foreign.MemorySegment _b, java.lang.foreign.MemorySegment _user_data) -> {
try {
return (int)constants$12.const$4.invokeExact(symbol, _a, _b, _user_data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}