org.purejava.appindicator._GtkNotebookClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libayatana-appindicator-java-full Show documentation
Show all versions of libayatana-appindicator-java-full Show documentation
Java bindings for libayatana-appindicator in 100% pure Java
// 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 _GtkNotebookClass {
* GtkContainerClass parent_class;
* void (*switch_page)(GtkNotebook *, GtkWidget *, guint);
* gboolean (*select_page)(GtkNotebook *, gboolean);
* gboolean (*focus_tab)(GtkNotebook *, GtkNotebookTab);
* gboolean (*change_current_page)(GtkNotebook *, gint);
* void (*move_focus_out)(GtkNotebook *, GtkDirectionType);
* gboolean (*reorder_tab)(GtkNotebook *, GtkDirectionType, gboolean);
* gint (*insert_page)(GtkNotebook *, GtkWidget *, GtkWidget *, GtkWidget *, gint);
* GtkNotebook *(*create_window)(GtkNotebook *, GtkWidget *, gint, gint);
* void (*page_reordered)(GtkNotebook *, GtkWidget *, guint);
* void (*page_removed)(GtkNotebook *, GtkWidget *, guint);
* void (*page_added)(GtkNotebook *, GtkWidget *, guint);
* void (*_gtk_reserved1)(void);
* void (*_gtk_reserved2)(void);
* void (*_gtk_reserved3)(void);
* void (*_gtk_reserved4)(void);
* void (*_gtk_reserved5)(void);
* void (*_gtk_reserved6)(void);
* void (*_gtk_reserved7)(void);
* void (*_gtk_reserved8)(void);
* }
* }
*/
public class _GtkNotebookClass {
_GtkNotebookClass() {
// Should not be called directly
}
private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
_GtkContainerClass.layout().withName("parent_class"),
app_indicator_h.C_POINTER.withName("switch_page"),
app_indicator_h.C_POINTER.withName("select_page"),
app_indicator_h.C_POINTER.withName("focus_tab"),
app_indicator_h.C_POINTER.withName("change_current_page"),
app_indicator_h.C_POINTER.withName("move_focus_out"),
app_indicator_h.C_POINTER.withName("reorder_tab"),
app_indicator_h.C_POINTER.withName("insert_page"),
app_indicator_h.C_POINTER.withName("create_window"),
app_indicator_h.C_POINTER.withName("page_reordered"),
app_indicator_h.C_POINTER.withName("page_removed"),
app_indicator_h.C_POINTER.withName("page_added"),
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"),
app_indicator_h.C_POINTER.withName("_gtk_reserved7"),
app_indicator_h.C_POINTER.withName("_gtk_reserved8")
).withName("_GtkNotebookClass");
/**
* 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 :
* GtkContainerClass 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 :
* GtkContainerClass parent_class
* }
*/
public static final long parent_class$offset() {
return parent_class$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* GtkContainerClass 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 :
* GtkContainerClass 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 (*switch_page)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public class switch_page {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, int _x2);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
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(switch_page.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(switch_page.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, 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 switch_page$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("switch_page"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*switch_page)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final AddressLayout switch_page$layout() {
return switch_page$LAYOUT;
}
private static final long switch_page$OFFSET = 976;
/**
* Offset for field:
* {@snippet lang=c :
* void (*switch_page)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final long switch_page$offset() {
return switch_page$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*switch_page)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static MemorySegment switch_page(MemorySegment struct) {
return struct.get(switch_page$LAYOUT, switch_page$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*switch_page)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static void switch_page(MemorySegment struct, MemorySegment fieldValue) {
struct.set(switch_page$LAYOUT, switch_page$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*select_page)(GtkNotebook *, gboolean)
* }
*/
public class select_page {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, int _x1);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
app_indicator_h.C_POINTER,
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(select_page.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(select_page.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 int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout select_page$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("select_page"));
/**
* Layout for field:
* {@snippet lang=c :
* gboolean (*select_page)(GtkNotebook *, gboolean)
* }
*/
public static final AddressLayout select_page$layout() {
return select_page$LAYOUT;
}
private static final long select_page$OFFSET = 984;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*select_page)(GtkNotebook *, gboolean)
* }
*/
public static final long select_page$offset() {
return select_page$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*select_page)(GtkNotebook *, gboolean)
* }
*/
public static MemorySegment select_page(MemorySegment struct) {
return struct.get(select_page$LAYOUT, select_page$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*select_page)(GtkNotebook *, gboolean)
* }
*/
public static void select_page(MemorySegment struct, MemorySegment fieldValue) {
struct.set(select_page$LAYOUT, select_page$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*focus_tab)(GtkNotebook *, GtkNotebookTab)
* }
*/
public class focus_tab {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, int _x1);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
app_indicator_h.C_POINTER,
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(focus_tab.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(focus_tab.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 int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout focus_tab$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("focus_tab"));
/**
* Layout for field:
* {@snippet lang=c :
* gboolean (*focus_tab)(GtkNotebook *, GtkNotebookTab)
* }
*/
public static final AddressLayout focus_tab$layout() {
return focus_tab$LAYOUT;
}
private static final long focus_tab$OFFSET = 992;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*focus_tab)(GtkNotebook *, GtkNotebookTab)
* }
*/
public static final long focus_tab$offset() {
return focus_tab$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*focus_tab)(GtkNotebook *, GtkNotebookTab)
* }
*/
public static MemorySegment focus_tab(MemorySegment struct) {
return struct.get(focus_tab$LAYOUT, focus_tab$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*focus_tab)(GtkNotebook *, GtkNotebookTab)
* }
*/
public static void focus_tab(MemorySegment struct, MemorySegment fieldValue) {
struct.set(focus_tab$LAYOUT, focus_tab$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*change_current_page)(GtkNotebook *, gint)
* }
*/
public class change_current_page {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, int _x1);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
app_indicator_h.C_POINTER,
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(change_current_page.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(change_current_page.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 int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout change_current_page$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("change_current_page"));
/**
* Layout for field:
* {@snippet lang=c :
* gboolean (*change_current_page)(GtkNotebook *, gint)
* }
*/
public static final AddressLayout change_current_page$layout() {
return change_current_page$LAYOUT;
}
private static final long change_current_page$OFFSET = 1000;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*change_current_page)(GtkNotebook *, gint)
* }
*/
public static final long change_current_page$offset() {
return change_current_page$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*change_current_page)(GtkNotebook *, gint)
* }
*/
public static MemorySegment change_current_page(MemorySegment struct) {
return struct.get(change_current_page$LAYOUT, change_current_page$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*change_current_page)(GtkNotebook *, gint)
* }
*/
public static void change_current_page(MemorySegment struct, MemorySegment fieldValue) {
struct.set(change_current_page$LAYOUT, change_current_page$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*move_focus_out)(GtkNotebook *, GtkDirectionType)
* }
*/
public class move_focus_out {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, int _x1);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
app_indicator_h.C_POINTER,
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_focus_out.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_focus_out.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) {
try {
DOWN$MH.invokeExact(funcPtr, _x0, _x1);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout move_focus_out$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("move_focus_out"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*move_focus_out)(GtkNotebook *, GtkDirectionType)
* }
*/
public static final AddressLayout move_focus_out$layout() {
return move_focus_out$LAYOUT;
}
private static final long move_focus_out$OFFSET = 1008;
/**
* Offset for field:
* {@snippet lang=c :
* void (*move_focus_out)(GtkNotebook *, GtkDirectionType)
* }
*/
public static final long move_focus_out$offset() {
return move_focus_out$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*move_focus_out)(GtkNotebook *, GtkDirectionType)
* }
*/
public static MemorySegment move_focus_out(MemorySegment struct) {
return struct.get(move_focus_out$LAYOUT, move_focus_out$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*move_focus_out)(GtkNotebook *, GtkDirectionType)
* }
*/
public static void move_focus_out(MemorySegment struct, MemorySegment fieldValue) {
struct.set(move_focus_out$LAYOUT, move_focus_out$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*reorder_tab)(GtkNotebook *, GtkDirectionType, gboolean)
* }
*/
public class reorder_tab {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, int _x1, int _x2);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
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(reorder_tab.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(reorder_tab.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 int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _x2) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout reorder_tab$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("reorder_tab"));
/**
* Layout for field:
* {@snippet lang=c :
* gboolean (*reorder_tab)(GtkNotebook *, GtkDirectionType, gboolean)
* }
*/
public static final AddressLayout reorder_tab$layout() {
return reorder_tab$LAYOUT;
}
private static final long reorder_tab$OFFSET = 1016;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*reorder_tab)(GtkNotebook *, GtkDirectionType, gboolean)
* }
*/
public static final long reorder_tab$offset() {
return reorder_tab$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*reorder_tab)(GtkNotebook *, GtkDirectionType, gboolean)
* }
*/
public static MemorySegment reorder_tab(MemorySegment struct) {
return struct.get(reorder_tab$LAYOUT, reorder_tab$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*reorder_tab)(GtkNotebook *, GtkDirectionType, gboolean)
* }
*/
public static void reorder_tab(MemorySegment struct, MemorySegment fieldValue) {
struct.set(reorder_tab$LAYOUT, reorder_tab$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gint (*insert_page)(GtkNotebook *, GtkWidget *, GtkWidget *, GtkWidget *, gint)
* }
*/
public class insert_page {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, int _x4);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
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(insert_page.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_page.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 int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, int _x4) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout insert_page$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("insert_page"));
/**
* Layout for field:
* {@snippet lang=c :
* gint (*insert_page)(GtkNotebook *, GtkWidget *, GtkWidget *, GtkWidget *, gint)
* }
*/
public static final AddressLayout insert_page$layout() {
return insert_page$LAYOUT;
}
private static final long insert_page$OFFSET = 1024;
/**
* Offset for field:
* {@snippet lang=c :
* gint (*insert_page)(GtkNotebook *, GtkWidget *, GtkWidget *, GtkWidget *, gint)
* }
*/
public static final long insert_page$offset() {
return insert_page$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gint (*insert_page)(GtkNotebook *, GtkWidget *, GtkWidget *, GtkWidget *, gint)
* }
*/
public static MemorySegment insert_page(MemorySegment struct) {
return struct.get(insert_page$LAYOUT, insert_page$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gint (*insert_page)(GtkNotebook *, GtkWidget *, GtkWidget *, GtkWidget *, gint)
* }
*/
public static void insert_page(MemorySegment struct, MemorySegment fieldValue) {
struct.set(insert_page$LAYOUT, insert_page$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* GtkNotebook *(*create_window)(GtkNotebook *, GtkWidget *, gint, gint)
* }
*/
public class create_window {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
MemorySegment apply(MemorySegment _x0, MemorySegment _x1, int _x2, int _x3);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
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(create_window.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(create_window.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 MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, int _x2, int _x3) {
try {
return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout create_window$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("create_window"));
/**
* Layout for field:
* {@snippet lang=c :
* GtkNotebook *(*create_window)(GtkNotebook *, GtkWidget *, gint, gint)
* }
*/
public static final AddressLayout create_window$layout() {
return create_window$LAYOUT;
}
private static final long create_window$OFFSET = 1032;
/**
* Offset for field:
* {@snippet lang=c :
* GtkNotebook *(*create_window)(GtkNotebook *, GtkWidget *, gint, gint)
* }
*/
public static final long create_window$offset() {
return create_window$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* GtkNotebook *(*create_window)(GtkNotebook *, GtkWidget *, gint, gint)
* }
*/
public static MemorySegment create_window(MemorySegment struct) {
return struct.get(create_window$LAYOUT, create_window$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* GtkNotebook *(*create_window)(GtkNotebook *, GtkWidget *, gint, gint)
* }
*/
public static void create_window(MemorySegment struct, MemorySegment fieldValue) {
struct.set(create_window$LAYOUT, create_window$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*page_reordered)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public class page_reordered {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, int _x2);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
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(page_reordered.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(page_reordered.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, 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 page_reordered$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("page_reordered"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*page_reordered)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final AddressLayout page_reordered$layout() {
return page_reordered$LAYOUT;
}
private static final long page_reordered$OFFSET = 1040;
/**
* Offset for field:
* {@snippet lang=c :
* void (*page_reordered)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final long page_reordered$offset() {
return page_reordered$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*page_reordered)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static MemorySegment page_reordered(MemorySegment struct) {
return struct.get(page_reordered$LAYOUT, page_reordered$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*page_reordered)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static void page_reordered(MemorySegment struct, MemorySegment fieldValue) {
struct.set(page_reordered$LAYOUT, page_reordered$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*page_removed)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public class page_removed {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, int _x2);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
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(page_removed.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(page_removed.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, 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 page_removed$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("page_removed"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*page_removed)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final AddressLayout page_removed$layout() {
return page_removed$LAYOUT;
}
private static final long page_removed$OFFSET = 1048;
/**
* Offset for field:
* {@snippet lang=c :
* void (*page_removed)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final long page_removed$offset() {
return page_removed$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*page_removed)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static MemorySegment page_removed(MemorySegment struct) {
return struct.get(page_removed$LAYOUT, page_removed$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*page_removed)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static void page_removed(MemorySegment struct, MemorySegment fieldValue) {
struct.set(page_removed$LAYOUT, page_removed$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*page_added)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public class page_added {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, int _x2);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
app_indicator_h.C_POINTER,
app_indicator_h.C_POINTER,
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(page_added.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(page_added.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, 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 page_added$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("page_added"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*page_added)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final AddressLayout page_added$layout() {
return page_added$LAYOUT;
}
private static final long page_added$OFFSET = 1056;
/**
* Offset for field:
* {@snippet lang=c :
* void (*page_added)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static final long page_added$offset() {
return page_added$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*page_added)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static MemorySegment page_added(MemorySegment struct) {
return struct.get(page_added$LAYOUT, page_added$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*page_added)(GtkNotebook *, GtkWidget *, guint)
* }
*/
public static void page_added(MemorySegment struct, MemorySegment fieldValue) {
struct.set(page_added$LAYOUT, page_added$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 = 1064;
/**
* 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 = 1072;
/**
* 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 = 1080;
/**
* 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 = 1088;
/**
* 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 = 1096;
/**
* 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 = 1104;
/**
* 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);
}
/**
* {@snippet lang=c :
* void (*_gtk_reserved7)(void)
* }
*/
public class _gtk_reserved7 {
/**
* 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_reserved7.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_reserved7.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_reserved7$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved7"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*_gtk_reserved7)(void)
* }
*/
public static final AddressLayout _gtk_reserved7$layout() {
return _gtk_reserved7$LAYOUT;
}
private static final long _gtk_reserved7$OFFSET = 1112;
/**
* Offset for field:
* {@snippet lang=c :
* void (*_gtk_reserved7)(void)
* }
*/
public static final long _gtk_reserved7$offset() {
return _gtk_reserved7$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*_gtk_reserved7)(void)
* }
*/
public static MemorySegment _gtk_reserved7(MemorySegment struct) {
return struct.get(_gtk_reserved7$LAYOUT, _gtk_reserved7$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*_gtk_reserved7)(void)
* }
*/
public static void _gtk_reserved7(MemorySegment struct, MemorySegment fieldValue) {
struct.set(_gtk_reserved7$LAYOUT, _gtk_reserved7$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*_gtk_reserved8)(void)
* }
*/
public class _gtk_reserved8 {
/**
* 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_reserved8.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_reserved8.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_reserved8$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_gtk_reserved8"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*_gtk_reserved8)(void)
* }
*/
public static final AddressLayout _gtk_reserved8$layout() {
return _gtk_reserved8$LAYOUT;
}
private static final long _gtk_reserved8$OFFSET = 1120;
/**
* Offset for field:
* {@snippet lang=c :
* void (*_gtk_reserved8)(void)
* }
*/
public static final long _gtk_reserved8$offset() {
return _gtk_reserved8$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*_gtk_reserved8)(void)
* }
*/
public static MemorySegment _gtk_reserved8(MemorySegment struct) {
return struct.get(_gtk_reserved8$LAYOUT, _gtk_reserved8$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*_gtk_reserved8)(void)
* }
*/
public static void _gtk_reserved8(MemorySegment struct, MemorySegment fieldValue) {
struct.set(_gtk_reserved8$LAYOUT, _gtk_reserved8$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);
}
}