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

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

// Generated by jextract

package org.purejava.appindicator;

import java.lang.invoke.*;
import java.lang.foreign.*;
import java.nio.ByteOrder;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;

import static java.lang.foreign.ValueLayout.*;
import static java.lang.foreign.MemoryLayout.PathElement.*;

/**
 * {@snippet lang=c :
 * struct _GtkEntryClass {
 *     GtkWidgetClass parent_class;
 *     void (*populate_popup)(GtkEntry *, GtkWidget *);
 *     void (*activate)(GtkEntry *);
 *     void (*move_cursor)(GtkEntry *, GtkMovementStep, gint, gboolean);
 *     void (*insert_at_cursor)(GtkEntry *, const gchar *);
 *     void (*delete_from_cursor)(GtkEntry *, GtkDeleteType, gint);
 *     void (*backspace)(GtkEntry *);
 *     void (*cut_clipboard)(GtkEntry *);
 *     void (*copy_clipboard)(GtkEntry *);
 *     void (*paste_clipboard)(GtkEntry *);
 *     void (*toggle_overwrite)(GtkEntry *);
 *     void (*get_text_area_size)(GtkEntry *, gint *, gint *, gint *, gint *);
 *     void (*get_frame_size)(GtkEntry *, gint *, gint *, gint *, gint *);
 *     void (*insert_emoji)(GtkEntry *);
 *     void (*_gtk_reserved1)(void);
 *     void (*_gtk_reserved2)(void);
 *     void (*_gtk_reserved3)(void);
 *     void (*_gtk_reserved4)(void);
 *     void (*_gtk_reserved5)(void);
 *     void (*_gtk_reserved6)(void);
 * }
 * }
 */
public class _GtkEntryClass {

    _GtkEntryClass() {
        // Should not be called directly
    }

    private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
        _GtkWidgetClass.layout().withName("parent_class"),
        app_indicator_h.C_POINTER.withName("populate_popup"),
        app_indicator_h.C_POINTER.withName("activate"),
        app_indicator_h.C_POINTER.withName("move_cursor"),
        app_indicator_h.C_POINTER.withName("insert_at_cursor"),
        app_indicator_h.C_POINTER.withName("delete_from_cursor"),
        app_indicator_h.C_POINTER.withName("backspace"),
        app_indicator_h.C_POINTER.withName("cut_clipboard"),
        app_indicator_h.C_POINTER.withName("copy_clipboard"),
        app_indicator_h.C_POINTER.withName("paste_clipboard"),
        app_indicator_h.C_POINTER.withName("toggle_overwrite"),
        app_indicator_h.C_POINTER.withName("get_text_area_size"),
        app_indicator_h.C_POINTER.withName("get_frame_size"),
        app_indicator_h.C_POINTER.withName("insert_emoji"),
        app_indicator_h.C_POINTER.withName("_gtk_reserved1"),
        app_indicator_h.C_POINTER.withName("_gtk_reserved2"),
        app_indicator_h.C_POINTER.withName("_gtk_reserved3"),
        app_indicator_h.C_POINTER.withName("_gtk_reserved4"),
        app_indicator_h.C_POINTER.withName("_gtk_reserved5"),
        app_indicator_h.C_POINTER.withName("_gtk_reserved6")
    ).withName("_GtkEntryClass");

    /**
     * The layout of this struct
     */
    public static final GroupLayout layout() {
        return $LAYOUT;
    }

    private static final GroupLayout parent_class$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_class"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * GtkWidgetClass parent_class
     * }
     */
    public static final GroupLayout parent_class$layout() {
        return parent_class$LAYOUT;
    }

    private static final long parent_class$OFFSET = 0;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * GtkWidgetClass parent_class
     * }
     */
    public static final long parent_class$offset() {
        return parent_class$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * GtkWidgetClass parent_class
     * }
     */
    public static MemorySegment parent_class(MemorySegment struct) {
        return struct.asSlice(parent_class$OFFSET, parent_class$LAYOUT.byteSize());
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * GtkWidgetClass parent_class
     * }
     */
    public static void parent_class(MemorySegment struct, MemorySegment fieldValue) {
        MemorySegment.copy(fieldValue, 0L, struct, parent_class$OFFSET, parent_class$LAYOUT.byteSize());
    }

    /**
     * {@snippet lang=c :
     * void (*populate_popup)(GtkEntry *, GtkWidget *)
     * }
     */
    public class populate_popup {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0, MemorySegment _x1);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(populate_popup.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(populate_popup.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0, _x1);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout populate_popup$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("populate_popup"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*populate_popup)(GtkEntry *, GtkWidget *)
     * }
     */
    public static final AddressLayout populate_popup$layout() {
        return populate_popup$LAYOUT;
    }

    private static final long populate_popup$OFFSET = 824;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*populate_popup)(GtkEntry *, GtkWidget *)
     * }
     */
    public static final long populate_popup$offset() {
        return populate_popup$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*populate_popup)(GtkEntry *, GtkWidget *)
     * }
     */
    public static MemorySegment populate_popup(MemorySegment struct) {
        return struct.get(populate_popup$LAYOUT, populate_popup$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*populate_popup)(GtkEntry *, GtkWidget *)
     * }
     */
    public static void populate_popup(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(populate_popup$LAYOUT, populate_popup$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*activate)(GtkEntry *)
     * }
     */
    public class activate {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(activate.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(activate.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout activate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("activate"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*activate)(GtkEntry *)
     * }
     */
    public static final AddressLayout activate$layout() {
        return activate$LAYOUT;
    }

    private static final long activate$OFFSET = 832;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*activate)(GtkEntry *)
     * }
     */
    public static final long activate$offset() {
        return activate$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*activate)(GtkEntry *)
     * }
     */
    public static MemorySegment activate(MemorySegment struct) {
        return struct.get(activate$LAYOUT, activate$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*activate)(GtkEntry *)
     * }
     */
    public static void activate(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(activate$LAYOUT, activate$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*move_cursor)(GtkEntry *, GtkMovementStep, gint, gboolean)
     * }
     */
    public class move_cursor {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0, int _x1, int _x2, int _x3);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER,
            app_indicator_h.C_INT,
            app_indicator_h.C_INT,
            app_indicator_h.C_INT
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(move_cursor.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(move_cursor.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _x2, int _x3) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout move_cursor$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("move_cursor"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*move_cursor)(GtkEntry *, GtkMovementStep, gint, gboolean)
     * }
     */
    public static final AddressLayout move_cursor$layout() {
        return move_cursor$LAYOUT;
    }

    private static final long move_cursor$OFFSET = 840;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*move_cursor)(GtkEntry *, GtkMovementStep, gint, gboolean)
     * }
     */
    public static final long move_cursor$offset() {
        return move_cursor$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*move_cursor)(GtkEntry *, GtkMovementStep, gint, gboolean)
     * }
     */
    public static MemorySegment move_cursor(MemorySegment struct) {
        return struct.get(move_cursor$LAYOUT, move_cursor$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*move_cursor)(GtkEntry *, GtkMovementStep, gint, gboolean)
     * }
     */
    public static void move_cursor(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(move_cursor$LAYOUT, move_cursor$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*insert_at_cursor)(GtkEntry *, const gchar *)
     * }
     */
    public class insert_at_cursor {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0, MemorySegment _x1);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(insert_at_cursor.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(insert_at_cursor.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0, _x1);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout insert_at_cursor$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("insert_at_cursor"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*insert_at_cursor)(GtkEntry *, const gchar *)
     * }
     */
    public static final AddressLayout insert_at_cursor$layout() {
        return insert_at_cursor$LAYOUT;
    }

    private static final long insert_at_cursor$OFFSET = 848;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*insert_at_cursor)(GtkEntry *, const gchar *)
     * }
     */
    public static final long insert_at_cursor$offset() {
        return insert_at_cursor$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*insert_at_cursor)(GtkEntry *, const gchar *)
     * }
     */
    public static MemorySegment insert_at_cursor(MemorySegment struct) {
        return struct.get(insert_at_cursor$LAYOUT, insert_at_cursor$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*insert_at_cursor)(GtkEntry *, const gchar *)
     * }
     */
    public static void insert_at_cursor(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(insert_at_cursor$LAYOUT, insert_at_cursor$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*delete_from_cursor)(GtkEntry *, GtkDeleteType, gint)
     * }
     */
    public class delete_from_cursor {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0, int _x1, int _x2);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER,
            app_indicator_h.C_INT,
            app_indicator_h.C_INT
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(delete_from_cursor.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(delete_from_cursor.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _x2) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout delete_from_cursor$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("delete_from_cursor"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*delete_from_cursor)(GtkEntry *, GtkDeleteType, gint)
     * }
     */
    public static final AddressLayout delete_from_cursor$layout() {
        return delete_from_cursor$LAYOUT;
    }

    private static final long delete_from_cursor$OFFSET = 856;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*delete_from_cursor)(GtkEntry *, GtkDeleteType, gint)
     * }
     */
    public static final long delete_from_cursor$offset() {
        return delete_from_cursor$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*delete_from_cursor)(GtkEntry *, GtkDeleteType, gint)
     * }
     */
    public static MemorySegment delete_from_cursor(MemorySegment struct) {
        return struct.get(delete_from_cursor$LAYOUT, delete_from_cursor$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*delete_from_cursor)(GtkEntry *, GtkDeleteType, gint)
     * }
     */
    public static void delete_from_cursor(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(delete_from_cursor$LAYOUT, delete_from_cursor$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*backspace)(GtkEntry *)
     * }
     */
    public class backspace {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(backspace.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(backspace.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout backspace$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("backspace"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*backspace)(GtkEntry *)
     * }
     */
    public static final AddressLayout backspace$layout() {
        return backspace$LAYOUT;
    }

    private static final long backspace$OFFSET = 864;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*backspace)(GtkEntry *)
     * }
     */
    public static final long backspace$offset() {
        return backspace$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*backspace)(GtkEntry *)
     * }
     */
    public static MemorySegment backspace(MemorySegment struct) {
        return struct.get(backspace$LAYOUT, backspace$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*backspace)(GtkEntry *)
     * }
     */
    public static void backspace(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(backspace$LAYOUT, backspace$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*cut_clipboard)(GtkEntry *)
     * }
     */
    public class cut_clipboard {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(cut_clipboard.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(cut_clipboard.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout cut_clipboard$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("cut_clipboard"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*cut_clipboard)(GtkEntry *)
     * }
     */
    public static final AddressLayout cut_clipboard$layout() {
        return cut_clipboard$LAYOUT;
    }

    private static final long cut_clipboard$OFFSET = 872;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*cut_clipboard)(GtkEntry *)
     * }
     */
    public static final long cut_clipboard$offset() {
        return cut_clipboard$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*cut_clipboard)(GtkEntry *)
     * }
     */
    public static MemorySegment cut_clipboard(MemorySegment struct) {
        return struct.get(cut_clipboard$LAYOUT, cut_clipboard$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*cut_clipboard)(GtkEntry *)
     * }
     */
    public static void cut_clipboard(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(cut_clipboard$LAYOUT, cut_clipboard$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*copy_clipboard)(GtkEntry *)
     * }
     */
    public class copy_clipboard {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(copy_clipboard.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(copy_clipboard.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout copy_clipboard$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("copy_clipboard"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*copy_clipboard)(GtkEntry *)
     * }
     */
    public static final AddressLayout copy_clipboard$layout() {
        return copy_clipboard$LAYOUT;
    }

    private static final long copy_clipboard$OFFSET = 880;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*copy_clipboard)(GtkEntry *)
     * }
     */
    public static final long copy_clipboard$offset() {
        return copy_clipboard$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*copy_clipboard)(GtkEntry *)
     * }
     */
    public static MemorySegment copy_clipboard(MemorySegment struct) {
        return struct.get(copy_clipboard$LAYOUT, copy_clipboard$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*copy_clipboard)(GtkEntry *)
     * }
     */
    public static void copy_clipboard(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(copy_clipboard$LAYOUT, copy_clipboard$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*paste_clipboard)(GtkEntry *)
     * }
     */
    public class paste_clipboard {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(paste_clipboard.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(paste_clipboard.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout paste_clipboard$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("paste_clipboard"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*paste_clipboard)(GtkEntry *)
     * }
     */
    public static final AddressLayout paste_clipboard$layout() {
        return paste_clipboard$LAYOUT;
    }

    private static final long paste_clipboard$OFFSET = 888;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*paste_clipboard)(GtkEntry *)
     * }
     */
    public static final long paste_clipboard$offset() {
        return paste_clipboard$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*paste_clipboard)(GtkEntry *)
     * }
     */
    public static MemorySegment paste_clipboard(MemorySegment struct) {
        return struct.get(paste_clipboard$LAYOUT, paste_clipboard$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*paste_clipboard)(GtkEntry *)
     * }
     */
    public static void paste_clipboard(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(paste_clipboard$LAYOUT, paste_clipboard$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*toggle_overwrite)(GtkEntry *)
     * }
     */
    public class toggle_overwrite {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(toggle_overwrite.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(toggle_overwrite.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout toggle_overwrite$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("toggle_overwrite"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*toggle_overwrite)(GtkEntry *)
     * }
     */
    public static final AddressLayout toggle_overwrite$layout() {
        return toggle_overwrite$LAYOUT;
    }

    private static final long toggle_overwrite$OFFSET = 896;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*toggle_overwrite)(GtkEntry *)
     * }
     */
    public static final long toggle_overwrite$offset() {
        return toggle_overwrite$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*toggle_overwrite)(GtkEntry *)
     * }
     */
    public static MemorySegment toggle_overwrite(MemorySegment struct) {
        return struct.get(toggle_overwrite$LAYOUT, toggle_overwrite$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*toggle_overwrite)(GtkEntry *)
     * }
     */
    public static void toggle_overwrite(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(toggle_overwrite$LAYOUT, toggle_overwrite$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*get_text_area_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public class get_text_area_size {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(get_text_area_size.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(get_text_area_size.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout get_text_area_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_text_area_size"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*get_text_area_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static final AddressLayout get_text_area_size$layout() {
        return get_text_area_size$LAYOUT;
    }

    private static final long get_text_area_size$OFFSET = 904;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*get_text_area_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static final long get_text_area_size$offset() {
        return get_text_area_size$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*get_text_area_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static MemorySegment get_text_area_size(MemorySegment struct) {
        return struct.get(get_text_area_size$LAYOUT, get_text_area_size$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*get_text_area_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static void get_text_area_size(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(get_text_area_size$LAYOUT, get_text_area_size$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*get_frame_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public class get_frame_size {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER,
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(get_frame_size.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(get_frame_size.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout get_frame_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_frame_size"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*get_frame_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static final AddressLayout get_frame_size$layout() {
        return get_frame_size$LAYOUT;
    }

    private static final long get_frame_size$OFFSET = 912;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*get_frame_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static final long get_frame_size$offset() {
        return get_frame_size$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*get_frame_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static MemorySegment get_frame_size(MemorySegment struct) {
        return struct.get(get_frame_size$LAYOUT, get_frame_size$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*get_frame_size)(GtkEntry *, gint *, gint *, gint *, gint *)
     * }
     */
    public static void get_frame_size(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(get_frame_size$LAYOUT, get_frame_size$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*insert_emoji)(GtkEntry *)
     * }
     */
    public class insert_emoji {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply(MemorySegment _x0);
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
            app_indicator_h.C_POINTER
        );

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(insert_emoji.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(insert_emoji.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
            try {
                 DOWN$MH.invokeExact(funcPtr, _x0);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout insert_emoji$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("insert_emoji"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*insert_emoji)(GtkEntry *)
     * }
     */
    public static final AddressLayout insert_emoji$layout() {
        return insert_emoji$LAYOUT;
    }

    private static final long insert_emoji$OFFSET = 920;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*insert_emoji)(GtkEntry *)
     * }
     */
    public static final long insert_emoji$offset() {
        return insert_emoji$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*insert_emoji)(GtkEntry *)
     * }
     */
    public static MemorySegment insert_emoji(MemorySegment struct) {
        return struct.get(insert_emoji$LAYOUT, insert_emoji$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*insert_emoji)(GtkEntry *)
     * }
     */
    public static void insert_emoji(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(insert_emoji$LAYOUT, insert_emoji$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*_gtk_reserved1)(void)
     * }
     */
    public class _gtk_reserved1 {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply();
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(_gtk_reserved1.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(_gtk_reserved1.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr) {
            try {
                 DOWN$MH.invokeExact(funcPtr);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout _gtk_reserved1$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved1"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved1)(void)
     * }
     */
    public static final AddressLayout _gtk_reserved1$layout() {
        return _gtk_reserved1$LAYOUT;
    }

    private static final long _gtk_reserved1$OFFSET = 928;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved1)(void)
     * }
     */
    public static final long _gtk_reserved1$offset() {
        return _gtk_reserved1$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved1)(void)
     * }
     */
    public static MemorySegment _gtk_reserved1(MemorySegment struct) {
        return struct.get(_gtk_reserved1$LAYOUT, _gtk_reserved1$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved1)(void)
     * }
     */
    public static void _gtk_reserved1(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(_gtk_reserved1$LAYOUT, _gtk_reserved1$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*_gtk_reserved2)(void)
     * }
     */
    public class _gtk_reserved2 {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply();
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(_gtk_reserved2.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(_gtk_reserved2.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr) {
            try {
                 DOWN$MH.invokeExact(funcPtr);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout _gtk_reserved2$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved2"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved2)(void)
     * }
     */
    public static final AddressLayout _gtk_reserved2$layout() {
        return _gtk_reserved2$LAYOUT;
    }

    private static final long _gtk_reserved2$OFFSET = 936;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved2)(void)
     * }
     */
    public static final long _gtk_reserved2$offset() {
        return _gtk_reserved2$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved2)(void)
     * }
     */
    public static MemorySegment _gtk_reserved2(MemorySegment struct) {
        return struct.get(_gtk_reserved2$LAYOUT, _gtk_reserved2$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved2)(void)
     * }
     */
    public static void _gtk_reserved2(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(_gtk_reserved2$LAYOUT, _gtk_reserved2$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*_gtk_reserved3)(void)
     * }
     */
    public class _gtk_reserved3 {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply();
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(_gtk_reserved3.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(_gtk_reserved3.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr) {
            try {
                 DOWN$MH.invokeExact(funcPtr);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout _gtk_reserved3$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved3"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved3)(void)
     * }
     */
    public static final AddressLayout _gtk_reserved3$layout() {
        return _gtk_reserved3$LAYOUT;
    }

    private static final long _gtk_reserved3$OFFSET = 944;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved3)(void)
     * }
     */
    public static final long _gtk_reserved3$offset() {
        return _gtk_reserved3$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved3)(void)
     * }
     */
    public static MemorySegment _gtk_reserved3(MemorySegment struct) {
        return struct.get(_gtk_reserved3$LAYOUT, _gtk_reserved3$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved3)(void)
     * }
     */
    public static void _gtk_reserved3(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(_gtk_reserved3$LAYOUT, _gtk_reserved3$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*_gtk_reserved4)(void)
     * }
     */
    public class _gtk_reserved4 {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply();
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(_gtk_reserved4.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(_gtk_reserved4.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr) {
            try {
                 DOWN$MH.invokeExact(funcPtr);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout _gtk_reserved4$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved4"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved4)(void)
     * }
     */
    public static final AddressLayout _gtk_reserved4$layout() {
        return _gtk_reserved4$LAYOUT;
    }

    private static final long _gtk_reserved4$OFFSET = 952;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved4)(void)
     * }
     */
    public static final long _gtk_reserved4$offset() {
        return _gtk_reserved4$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved4)(void)
     * }
     */
    public static MemorySegment _gtk_reserved4(MemorySegment struct) {
        return struct.get(_gtk_reserved4$LAYOUT, _gtk_reserved4$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved4)(void)
     * }
     */
    public static void _gtk_reserved4(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(_gtk_reserved4$LAYOUT, _gtk_reserved4$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*_gtk_reserved5)(void)
     * }
     */
    public class _gtk_reserved5 {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply();
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(_gtk_reserved5.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(_gtk_reserved5.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr) {
            try {
                 DOWN$MH.invokeExact(funcPtr);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout _gtk_reserved5$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved5"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved5)(void)
     * }
     */
    public static final AddressLayout _gtk_reserved5$layout() {
        return _gtk_reserved5$LAYOUT;
    }

    private static final long _gtk_reserved5$OFFSET = 960;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved5)(void)
     * }
     */
    public static final long _gtk_reserved5$offset() {
        return _gtk_reserved5$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved5)(void)
     * }
     */
    public static MemorySegment _gtk_reserved5(MemorySegment struct) {
        return struct.get(_gtk_reserved5$LAYOUT, _gtk_reserved5$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved5)(void)
     * }
     */
    public static void _gtk_reserved5(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(_gtk_reserved5$LAYOUT, _gtk_reserved5$OFFSET, fieldValue);
    }

    /**
     * {@snippet lang=c :
     * void (*_gtk_reserved6)(void)
     * }
     */
    public class _gtk_reserved6 {

        /**
         * The function pointer signature, expressed as a functional interface
         */
        public interface Function {
            void apply();
        }

        private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();

        /**
         * The descriptor of this function pointer
         */
        public static FunctionDescriptor descriptor() {
            return $DESC;
        }

        private static final MethodHandle UP$MH = app_indicator_h.upcallHandle(_gtk_reserved6.Function.class, "apply", $DESC);

        /**
         * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
         * The lifetime of the returned segment is managed by {@code arena}
         */
        public static MemorySegment allocate(_gtk_reserved6.Function fi, Arena arena) {
            return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
        }

        private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);

        /**
         * Invoke the upcall stub {@code funcPtr}, with given parameters
         */
        public static void invoke(MemorySegment funcPtr) {
            try {
                 DOWN$MH.invokeExact(funcPtr);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        }
    }

    private static final AddressLayout _gtk_reserved6$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved6"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved6)(void)
     * }
     */
    public static final AddressLayout _gtk_reserved6$layout() {
        return _gtk_reserved6$LAYOUT;
    }

    private static final long _gtk_reserved6$OFFSET = 968;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved6)(void)
     * }
     */
    public static final long _gtk_reserved6$offset() {
        return _gtk_reserved6$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved6)(void)
     * }
     */
    public static MemorySegment _gtk_reserved6(MemorySegment struct) {
        return struct.get(_gtk_reserved6$LAYOUT, _gtk_reserved6$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * void (*_gtk_reserved6)(void)
     * }
     */
    public static void _gtk_reserved6(MemorySegment struct, MemorySegment fieldValue) {
        struct.set(_gtk_reserved6$LAYOUT, _gtk_reserved6$OFFSET, fieldValue);
    }

    /**
     * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
     * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
     */
    public static MemorySegment asSlice(MemorySegment array, long index) {
        return array.asSlice(layout().byteSize() * index);
    }

    /**
     * The size (in bytes) of this struct
     */
    public static long sizeof() { return layout().byteSize(); }

    /**
     * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
     */
    public static MemorySegment allocate(SegmentAllocator allocator) {
        return allocator.allocate(layout());
    }

    /**
     * Allocate an array of size {@code elementCount} using {@code allocator}.
     * The returned segment has size {@code elementCount * layout().byteSize()}.
     */
    public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
        return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
    }

    /**
     * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction) (if any).
     * The returned segment has size {@code layout().byteSize()}
     */
    public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
        return reinterpret(addr, 1, arena, cleanup);
    }

    /**
     * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction) (if any).
     * The returned segment has size {@code elementCount * layout().byteSize()}
     */
    public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
        return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy