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

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

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

package org.purejava.appindicator;

import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
/**
 * {@snippet :
 * int (*GtkAccelGroupFindFunc)(struct _GtkAccelKey* key,struct _GClosure* closure,void* data);
 * }
 */
public interface GtkAccelGroupFindFunc {

    int apply(java.lang.foreign.MemorySegment a, java.lang.foreign.MemorySegment b, java.lang.foreign.MemorySegment user_data);
    static MemorySegment allocate(GtkAccelGroupFindFunc fi, Arena scope) {
        return RuntimeHelper.upcallStub(constants$1950.const$1, fi, constants$12.const$2, scope);
    }
    static GtkAccelGroupFindFunc 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$);
            }
        };
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy