org.purejava.appindicator._GtkCellAreaClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libappindicator-gtk3-java-full Show documentation
Show all versions of libappindicator-gtk3-java-full Show documentation
Java bindings for libappindicator-gtk3 in 100% pure Java
The newest version!
// 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 _GtkCellAreaClass {
* GInitiallyUnownedClass parent_class;
* void (*add)(GtkCellArea *, GtkCellRenderer *);
* void (*remove)(GtkCellArea *, GtkCellRenderer *);
* void (*foreach)(GtkCellArea *, GtkCellCallback, gpointer);
* void (*foreach_alloc)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellAllocCallback, gpointer);
* gint (*event)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, GdkEvent *, const GdkRectangle *, GtkCellRendererState);
* void (*render)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, cairo_t *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState, gboolean);
* void (*apply_attributes)(GtkCellArea *, GtkTreeModel *, GtkTreeIter *, gboolean, gboolean);
* GtkCellAreaContext *(*create_context)(GtkCellArea *);
* GtkCellAreaContext *(*copy_context)(GtkCellArea *, GtkCellAreaContext *);
* GtkSizeRequestMode (*get_request_mode)(GtkCellArea *);
* void (*get_preferred_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *);
* void (*get_preferred_height_for_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *);
* void (*get_preferred_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *);
* void (*get_preferred_width_for_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *);
* void (*set_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, const GValue *, GParamSpec *);
* void (*get_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, GValue *, GParamSpec *);
* gboolean (*focus)(GtkCellArea *, GtkDirectionType);
* gboolean (*is_activatable)(GtkCellArea *);
* gboolean (*activate)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, GtkCellRendererState, gboolean);
* 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 _GtkCellAreaClass {
_GtkCellAreaClass() {
// Should not be called directly
}
private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
_GObjectClass.layout().withName("parent_class"),
app_indicator_h.C_POINTER.withName("add"),
app_indicator_h.C_POINTER.withName("remove"),
app_indicator_h.C_POINTER.withName("foreach"),
app_indicator_h.C_POINTER.withName("foreach_alloc"),
app_indicator_h.C_POINTER.withName("event"),
app_indicator_h.C_POINTER.withName("render"),
app_indicator_h.C_POINTER.withName("apply_attributes"),
app_indicator_h.C_POINTER.withName("create_context"),
app_indicator_h.C_POINTER.withName("copy_context"),
app_indicator_h.C_POINTER.withName("get_request_mode"),
app_indicator_h.C_POINTER.withName("get_preferred_width"),
app_indicator_h.C_POINTER.withName("get_preferred_height_for_width"),
app_indicator_h.C_POINTER.withName("get_preferred_height"),
app_indicator_h.C_POINTER.withName("get_preferred_width_for_height"),
app_indicator_h.C_POINTER.withName("set_cell_property"),
app_indicator_h.C_POINTER.withName("get_cell_property"),
app_indicator_h.C_POINTER.withName("focus"),
app_indicator_h.C_POINTER.withName("is_activatable"),
app_indicator_h.C_POINTER.withName("activate"),
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("_GtkCellAreaClass");
/**
* 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 :
* GInitiallyUnownedClass 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 :
* GInitiallyUnownedClass parent_class
* }
*/
public static final long parent_class$offset() {
return parent_class$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* GInitiallyUnownedClass 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 :
* GInitiallyUnownedClass 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 (*add)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public class add {
/**
* 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(add.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(add.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 add$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("add"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*add)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static final AddressLayout add$layout() {
return add$LAYOUT;
}
private static final long add$OFFSET = 136;
/**
* Offset for field:
* {@snippet lang=c :
* void (*add)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static final long add$offset() {
return add$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*add)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static MemorySegment add(MemorySegment struct) {
return struct.get(add$LAYOUT, add$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*add)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static void add(MemorySegment struct, MemorySegment fieldValue) {
struct.set(add$LAYOUT, add$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*remove)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public class remove {
/**
* 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(remove.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(remove.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 remove$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("remove"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*remove)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static final AddressLayout remove$layout() {
return remove$LAYOUT;
}
private static final long remove$OFFSET = 144;
/**
* Offset for field:
* {@snippet lang=c :
* void (*remove)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static final long remove$offset() {
return remove$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*remove)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static MemorySegment remove(MemorySegment struct) {
return struct.get(remove$LAYOUT, remove$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*remove)(GtkCellArea *, GtkCellRenderer *)
* }
*/
public static void remove(MemorySegment struct, MemorySegment fieldValue) {
struct.set(remove$LAYOUT, remove$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*foreach)(GtkCellArea *, GtkCellCallback, gpointer)
* }
*/
public class foreach {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
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(foreach.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(foreach.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) {
try {
DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout foreach$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("foreach"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*foreach)(GtkCellArea *, GtkCellCallback, gpointer)
* }
*/
public static final AddressLayout foreach$layout() {
return foreach$LAYOUT;
}
private static final long foreach$OFFSET = 152;
/**
* Offset for field:
* {@snippet lang=c :
* void (*foreach)(GtkCellArea *, GtkCellCallback, gpointer)
* }
*/
public static final long foreach$offset() {
return foreach$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*foreach)(GtkCellArea *, GtkCellCallback, gpointer)
* }
*/
public static MemorySegment foreach(MemorySegment struct) {
return struct.get(foreach$LAYOUT, foreach$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*foreach)(GtkCellArea *, GtkCellCallback, gpointer)
* }
*/
public static void foreach(MemorySegment struct, MemorySegment fieldValue) {
struct.set(foreach$LAYOUT, foreach$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*foreach_alloc)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellAllocCallback, gpointer)
* }
*/
public class foreach_alloc {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6);
}
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,
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(foreach_alloc.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(foreach_alloc.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, MemorySegment _x5, MemorySegment _x6) {
try {
DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout foreach_alloc$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("foreach_alloc"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*foreach_alloc)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellAllocCallback, gpointer)
* }
*/
public static final AddressLayout foreach_alloc$layout() {
return foreach_alloc$LAYOUT;
}
private static final long foreach_alloc$OFFSET = 160;
/**
* Offset for field:
* {@snippet lang=c :
* void (*foreach_alloc)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellAllocCallback, gpointer)
* }
*/
public static final long foreach_alloc$offset() {
return foreach_alloc$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*foreach_alloc)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellAllocCallback, gpointer)
* }
*/
public static MemorySegment foreach_alloc(MemorySegment struct) {
return struct.get(foreach_alloc$LAYOUT, foreach_alloc$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*foreach_alloc)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellAllocCallback, gpointer)
* }
*/
public static void foreach_alloc(MemorySegment struct, MemorySegment fieldValue) {
struct.set(foreach_alloc$LAYOUT, foreach_alloc$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gint (*event)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, GdkEvent *, const GdkRectangle *, GtkCellRendererState)
* }
*/
public class event {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, int _x5);
}
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_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(event.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(event.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, MemorySegment _x4, int _x5) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout event$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("event"));
/**
* Layout for field:
* {@snippet lang=c :
* gint (*event)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, GdkEvent *, const GdkRectangle *, GtkCellRendererState)
* }
*/
public static final AddressLayout event$layout() {
return event$LAYOUT;
}
private static final long event$OFFSET = 168;
/**
* Offset for field:
* {@snippet lang=c :
* gint (*event)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, GdkEvent *, const GdkRectangle *, GtkCellRendererState)
* }
*/
public static final long event$offset() {
return event$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gint (*event)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, GdkEvent *, const GdkRectangle *, GtkCellRendererState)
* }
*/
public static MemorySegment event(MemorySegment struct) {
return struct.get(event$LAYOUT, event$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gint (*event)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, GdkEvent *, const GdkRectangle *, GtkCellRendererState)
* }
*/
public static void event(MemorySegment struct, MemorySegment fieldValue) {
struct.set(event$LAYOUT, event$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*render)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, cairo_t *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public class render {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, int _x6, int _x7);
}
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,
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(render.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(render.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, MemorySegment _x5, int _x6, int _x7) {
try {
DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout render$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("render"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*render)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, cairo_t *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static final AddressLayout render$layout() {
return render$LAYOUT;
}
private static final long render$OFFSET = 176;
/**
* Offset for field:
* {@snippet lang=c :
* void (*render)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, cairo_t *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static final long render$offset() {
return render$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*render)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, cairo_t *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static MemorySegment render(MemorySegment struct) {
return struct.get(render$LAYOUT, render$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*render)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, cairo_t *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static void render(MemorySegment struct, MemorySegment fieldValue) {
struct.set(render$LAYOUT, render$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*apply_attributes)(GtkCellArea *, GtkTreeModel *, GtkTreeIter *, gboolean, gboolean)
* }
*/
public class apply_attributes {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, int _x3, int _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_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(apply_attributes.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(apply_attributes.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, int _x3, int _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 apply_attributes$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("apply_attributes"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*apply_attributes)(GtkCellArea *, GtkTreeModel *, GtkTreeIter *, gboolean, gboolean)
* }
*/
public static final AddressLayout apply_attributes$layout() {
return apply_attributes$LAYOUT;
}
private static final long apply_attributes$OFFSET = 184;
/**
* Offset for field:
* {@snippet lang=c :
* void (*apply_attributes)(GtkCellArea *, GtkTreeModel *, GtkTreeIter *, gboolean, gboolean)
* }
*/
public static final long apply_attributes$offset() {
return apply_attributes$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*apply_attributes)(GtkCellArea *, GtkTreeModel *, GtkTreeIter *, gboolean, gboolean)
* }
*/
public static MemorySegment apply_attributes(MemorySegment struct) {
return struct.get(apply_attributes$LAYOUT, apply_attributes$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*apply_attributes)(GtkCellArea *, GtkTreeModel *, GtkTreeIter *, gboolean, gboolean)
* }
*/
public static void apply_attributes(MemorySegment struct, MemorySegment fieldValue) {
struct.set(apply_attributes$LAYOUT, apply_attributes$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* GtkCellAreaContext *(*create_context)(GtkCellArea *)
* }
*/
public class create_context {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
MemorySegment apply(MemorySegment _x0);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
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(create_context.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_context.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) {
try {
return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout create_context$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("create_context"));
/**
* Layout for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*create_context)(GtkCellArea *)
* }
*/
public static final AddressLayout create_context$layout() {
return create_context$LAYOUT;
}
private static final long create_context$OFFSET = 192;
/**
* Offset for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*create_context)(GtkCellArea *)
* }
*/
public static final long create_context$offset() {
return create_context$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*create_context)(GtkCellArea *)
* }
*/
public static MemorySegment create_context(MemorySegment struct) {
return struct.get(create_context$LAYOUT, create_context$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*create_context)(GtkCellArea *)
* }
*/
public static void create_context(MemorySegment struct, MemorySegment fieldValue) {
struct.set(create_context$LAYOUT, create_context$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* GtkCellAreaContext *(*copy_context)(GtkCellArea *, GtkCellAreaContext *)
* }
*/
public class copy_context {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
MemorySegment apply(MemorySegment _x0, MemorySegment _x1);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
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(copy_context.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_context.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) {
try {
return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout copy_context$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("copy_context"));
/**
* Layout for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*copy_context)(GtkCellArea *, GtkCellAreaContext *)
* }
*/
public static final AddressLayout copy_context$layout() {
return copy_context$LAYOUT;
}
private static final long copy_context$OFFSET = 200;
/**
* Offset for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*copy_context)(GtkCellArea *, GtkCellAreaContext *)
* }
*/
public static final long copy_context$offset() {
return copy_context$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*copy_context)(GtkCellArea *, GtkCellAreaContext *)
* }
*/
public static MemorySegment copy_context(MemorySegment struct) {
return struct.get(copy_context$LAYOUT, copy_context$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* GtkCellAreaContext *(*copy_context)(GtkCellArea *, GtkCellAreaContext *)
* }
*/
public static void copy_context(MemorySegment struct, MemorySegment fieldValue) {
struct.set(copy_context$LAYOUT, copy_context$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* GtkSizeRequestMode (*get_request_mode)(GtkCellArea *)
* }
*/
public class get_request_mode {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
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_request_mode.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_request_mode.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) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout get_request_mode$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_request_mode"));
/**
* Layout for field:
* {@snippet lang=c :
* GtkSizeRequestMode (*get_request_mode)(GtkCellArea *)
* }
*/
public static final AddressLayout get_request_mode$layout() {
return get_request_mode$LAYOUT;
}
private static final long get_request_mode$OFFSET = 208;
/**
* Offset for field:
* {@snippet lang=c :
* GtkSizeRequestMode (*get_request_mode)(GtkCellArea *)
* }
*/
public static final long get_request_mode$offset() {
return get_request_mode$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* GtkSizeRequestMode (*get_request_mode)(GtkCellArea *)
* }
*/
public static MemorySegment get_request_mode(MemorySegment struct) {
return struct.get(get_request_mode$LAYOUT, get_request_mode$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* GtkSizeRequestMode (*get_request_mode)(GtkCellArea *)
* }
*/
public static void get_request_mode(MemorySegment struct, MemorySegment fieldValue) {
struct.set(get_request_mode$LAYOUT, get_request_mode$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*get_preferred_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public class get_preferred_width {
/**
* 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_preferred_width.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_preferred_width.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_preferred_width$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_preferred_width"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*get_preferred_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static final AddressLayout get_preferred_width$layout() {
return get_preferred_width$LAYOUT;
}
private static final long get_preferred_width$OFFSET = 216;
/**
* Offset for field:
* {@snippet lang=c :
* void (*get_preferred_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static final long get_preferred_width$offset() {
return get_preferred_width$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*get_preferred_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static MemorySegment get_preferred_width(MemorySegment struct) {
return struct.get(get_preferred_width$LAYOUT, get_preferred_width$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*get_preferred_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static void get_preferred_width(MemorySegment struct, MemorySegment fieldValue) {
struct.set(get_preferred_width$LAYOUT, get_preferred_width$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*get_preferred_height_for_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public class get_preferred_height_for_width {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, int _x3, MemorySegment _x4, MemorySegment _x5);
}
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_INT,
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_preferred_height_for_width.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_preferred_height_for_width.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, int _x3, MemorySegment _x4, MemorySegment _x5) {
try {
DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout get_preferred_height_for_width$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_preferred_height_for_width"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*get_preferred_height_for_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static final AddressLayout get_preferred_height_for_width$layout() {
return get_preferred_height_for_width$LAYOUT;
}
private static final long get_preferred_height_for_width$OFFSET = 224;
/**
* Offset for field:
* {@snippet lang=c :
* void (*get_preferred_height_for_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static final long get_preferred_height_for_width$offset() {
return get_preferred_height_for_width$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*get_preferred_height_for_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static MemorySegment get_preferred_height_for_width(MemorySegment struct) {
return struct.get(get_preferred_height_for_width$LAYOUT, get_preferred_height_for_width$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*get_preferred_height_for_width)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static void get_preferred_height_for_width(MemorySegment struct, MemorySegment fieldValue) {
struct.set(get_preferred_height_for_width$LAYOUT, get_preferred_height_for_width$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*get_preferred_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public class get_preferred_height {
/**
* 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_preferred_height.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_preferred_height.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_preferred_height$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_preferred_height"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*get_preferred_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static final AddressLayout get_preferred_height$layout() {
return get_preferred_height$LAYOUT;
}
private static final long get_preferred_height$OFFSET = 232;
/**
* Offset for field:
* {@snippet lang=c :
* void (*get_preferred_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static final long get_preferred_height$offset() {
return get_preferred_height$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*get_preferred_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static MemorySegment get_preferred_height(MemorySegment struct) {
return struct.get(get_preferred_height$LAYOUT, get_preferred_height$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*get_preferred_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint *, gint *)
* }
*/
public static void get_preferred_height(MemorySegment struct, MemorySegment fieldValue) {
struct.set(get_preferred_height$LAYOUT, get_preferred_height$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*get_preferred_width_for_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public class get_preferred_width_for_height {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, int _x3, MemorySegment _x4, MemorySegment _x5);
}
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_INT,
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_preferred_width_for_height.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_preferred_width_for_height.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, int _x3, MemorySegment _x4, MemorySegment _x5) {
try {
DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout get_preferred_width_for_height$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_preferred_width_for_height"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*get_preferred_width_for_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static final AddressLayout get_preferred_width_for_height$layout() {
return get_preferred_width_for_height$LAYOUT;
}
private static final long get_preferred_width_for_height$OFFSET = 240;
/**
* Offset for field:
* {@snippet lang=c :
* void (*get_preferred_width_for_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static final long get_preferred_width_for_height$offset() {
return get_preferred_width_for_height$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*get_preferred_width_for_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static MemorySegment get_preferred_width_for_height(MemorySegment struct) {
return struct.get(get_preferred_width_for_height$LAYOUT, get_preferred_width_for_height$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*get_preferred_width_for_height)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, gint, gint *, gint *)
* }
*/
public static void get_preferred_width_for_height(MemorySegment struct, MemorySegment fieldValue) {
struct.set(get_preferred_width_for_height$LAYOUT, get_preferred_width_for_height$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*set_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, const GValue *, GParamSpec *)
* }
*/
public class set_cell_property {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, int _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_INT,
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(set_cell_property.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(set_cell_property.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, 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 set_cell_property$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("set_cell_property"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*set_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, const GValue *, GParamSpec *)
* }
*/
public static final AddressLayout set_cell_property$layout() {
return set_cell_property$LAYOUT;
}
private static final long set_cell_property$OFFSET = 248;
/**
* Offset for field:
* {@snippet lang=c :
* void (*set_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, const GValue *, GParamSpec *)
* }
*/
public static final long set_cell_property$offset() {
return set_cell_property$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*set_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, const GValue *, GParamSpec *)
* }
*/
public static MemorySegment set_cell_property(MemorySegment struct) {
return struct.get(set_cell_property$LAYOUT, set_cell_property$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*set_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, const GValue *, GParamSpec *)
* }
*/
public static void set_cell_property(MemorySegment struct, MemorySegment fieldValue) {
struct.set(set_cell_property$LAYOUT, set_cell_property$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* void (*get_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, GValue *, GParamSpec *)
* }
*/
public class get_cell_property {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
void apply(MemorySegment _x0, MemorySegment _x1, int _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_INT,
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_cell_property.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_cell_property.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, 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_cell_property$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_cell_property"));
/**
* Layout for field:
* {@snippet lang=c :
* void (*get_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, GValue *, GParamSpec *)
* }
*/
public static final AddressLayout get_cell_property$layout() {
return get_cell_property$LAYOUT;
}
private static final long get_cell_property$OFFSET = 256;
/**
* Offset for field:
* {@snippet lang=c :
* void (*get_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, GValue *, GParamSpec *)
* }
*/
public static final long get_cell_property$offset() {
return get_cell_property$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* void (*get_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, GValue *, GParamSpec *)
* }
*/
public static MemorySegment get_cell_property(MemorySegment struct) {
return struct.get(get_cell_property$LAYOUT, get_cell_property$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* void (*get_cell_property)(GtkCellArea *, GtkCellRenderer *, guint, GValue *, GParamSpec *)
* }
*/
public static void get_cell_property(MemorySegment struct, MemorySegment fieldValue) {
struct.set(get_cell_property$LAYOUT, get_cell_property$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*focus)(GtkCellArea *, GtkDirectionType)
* }
*/
public class focus {
/**
* 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.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.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$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("focus"));
/**
* Layout for field:
* {@snippet lang=c :
* gboolean (*focus)(GtkCellArea *, GtkDirectionType)
* }
*/
public static final AddressLayout focus$layout() {
return focus$LAYOUT;
}
private static final long focus$OFFSET = 264;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*focus)(GtkCellArea *, GtkDirectionType)
* }
*/
public static final long focus$offset() {
return focus$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*focus)(GtkCellArea *, GtkDirectionType)
* }
*/
public static MemorySegment focus(MemorySegment struct) {
return struct.get(focus$LAYOUT, focus$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*focus)(GtkCellArea *, GtkDirectionType)
* }
*/
public static void focus(MemorySegment struct, MemorySegment fieldValue) {
struct.set(focus$LAYOUT, focus$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*is_activatable)(GtkCellArea *)
* }
*/
public class is_activatable {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0);
}
private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
app_indicator_h.C_INT,
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(is_activatable.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(is_activatable.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) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
}
private static final AddressLayout is_activatable$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("is_activatable"));
/**
* Layout for field:
* {@snippet lang=c :
* gboolean (*is_activatable)(GtkCellArea *)
* }
*/
public static final AddressLayout is_activatable$layout() {
return is_activatable$LAYOUT;
}
private static final long is_activatable$OFFSET = 272;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*is_activatable)(GtkCellArea *)
* }
*/
public static final long is_activatable$offset() {
return is_activatable$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*is_activatable)(GtkCellArea *)
* }
*/
public static MemorySegment is_activatable(MemorySegment struct) {
return struct.get(is_activatable$LAYOUT, is_activatable$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*is_activatable)(GtkCellArea *)
* }
*/
public static void is_activatable(MemorySegment struct, MemorySegment fieldValue) {
struct.set(is_activatable$LAYOUT, is_activatable$OFFSET, fieldValue);
}
/**
* {@snippet lang=c :
* gboolean (*activate)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public class activate {
/**
* The function pointer signature, expressed as a functional interface
*/
public interface Function {
int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, int _x4, int _x5);
}
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,
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(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 int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, int _x4, int _x5) {
try {
return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5);
} 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 :
* gboolean (*activate)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static final AddressLayout activate$layout() {
return activate$LAYOUT;
}
private static final long activate$OFFSET = 280;
/**
* Offset for field:
* {@snippet lang=c :
* gboolean (*activate)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static final long activate$offset() {
return activate$OFFSET;
}
/**
* Getter for field:
* {@snippet lang=c :
* gboolean (*activate)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static MemorySegment activate(MemorySegment struct) {
return struct.get(activate$LAYOUT, activate$OFFSET);
}
/**
* Setter for field:
* {@snippet lang=c :
* gboolean (*activate)(GtkCellArea *, GtkCellAreaContext *, GtkWidget *, const GdkRectangle *, GtkCellRendererState, gboolean)
* }
*/
public static void activate(MemorySegment struct, MemorySegment fieldValue) {
struct.set(activate$LAYOUT, activate$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 = 288;
/**
* 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 = 296;
/**
* 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 = 304;
/**
* 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 = 312;
/**
* 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 = 320;
/**
* 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 = 328;
/**
* 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 = 336;
/**
* 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 = 344;
/**
* 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy