org.purejava.appindicator.GtkCellAllocCallback 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 (*GtkCellAllocCallback)(struct _GtkCellRenderer* renderer,struct _cairo_rectangle_int* cell_area,struct _cairo_rectangle_int* cell_background,void* data);
* }
*/
public interface GtkCellAllocCallback {
int apply(java.lang.foreign.MemorySegment completion, java.lang.foreign.MemorySegment key, java.lang.foreign.MemorySegment iter, java.lang.foreign.MemorySegment user_data);
static MemorySegment allocate(GtkCellAllocCallback fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2323.const$2, fi, constants$34.const$5, scope);
}
static GtkCellAllocCallback ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _completion, java.lang.foreign.MemorySegment _key, java.lang.foreign.MemorySegment _iter, java.lang.foreign.MemorySegment _user_data) -> {
try {
return (int)constants$382.const$0.invokeExact(symbol, _completion, _key, _iter, _user_data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}