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

org.purejava.appindicator.GtkIconViewForeachFunc 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 :
 * void (*GtkIconViewForeachFunc)(struct _GtkIconView* icon_view,struct _GtkTreePath* path,void* data);
 * }
 */
public interface GtkIconViewForeachFunc {

    void apply(java.lang.foreign.MemorySegment key, java.lang.foreign.MemorySegment value, java.lang.foreign.MemorySegment user_data);
    static MemorySegment allocate(GtkIconViewForeachFunc fi, Arena scope) {
        return RuntimeHelper.upcallStub(constants$2801.const$4, fi, constants$14.const$3, scope);
    }
    static GtkIconViewForeachFunc ofAddress(MemorySegment addr, Arena arena) {
        MemorySegment symbol = addr.reinterpret(arena, null);
        return (java.lang.foreign.MemorySegment _key, java.lang.foreign.MemorySegment _value, java.lang.foreign.MemorySegment _user_data) -> {
            try {
                constants$14.const$5.invokeExact(symbol, _key, _value, _user_data);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        };
    }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy