All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.purejava.appindicator.GtkTreeIterCompareFunc Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
// Generated by jextract

package org.purejava.appindicator;

import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
/**
 * {@snippet :
 * int (*GtkTreeIterCompareFunc)(struct _GtkTreeModel* model,struct _GtkTreeIter* a,struct _GtkTreeIter* b,void* user_data);
 * }
 */
public interface GtkTreeIterCompareFunc {

    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(GtkTreeIterCompareFunc fi, Arena scope) {
        return RuntimeHelper.upcallStub(constants$2319.const$0, fi, constants$34.const$5, scope);
    }
    static GtkTreeIterCompareFunc 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$);
            }
        };
    }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy