org.purejava.appindicator._GtkBuildableIface 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
// Generated by jextract
package org.purejava.appindicator;
import java.lang.foreign.Arena;
import java.lang.foreign.MemoryLayout;
import java.lang.foreign.MemorySegment;
import java.lang.foreign.SegmentAllocator;
import java.lang.invoke.VarHandle;
/**
* {@snippet :
* struct _GtkBuildableIface {
* struct _GTypeInterface g_iface;
* void (*set_name)(struct _GtkBuildable*,char*);
* char* (*get_name)(struct _GtkBuildable*);
* void (*add_child)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*);
* void (*set_buildable_property)(struct _GtkBuildable*,struct _GtkBuilder*,char*,struct _GValue*);
* struct _GObject* (*construct_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* int (*custom_tag_start)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,struct _GMarkupParser*,void**);
* void (*custom_tag_end)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void**);
* void (*custom_finished)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void*);
* void (*parser_finished)(struct _GtkBuildable*,struct _GtkBuilder*);
* struct _GObject* (*get_internal_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* };
* }
*/
public class _GtkBuildableIface {
public static MemoryLayout $LAYOUT() {
return constants$2543.const$4;
}
public static MemorySegment g_iface$slice(MemorySegment seg) {
return seg.asSlice(0, 16);
}
/**
* {@snippet :
* void (*set_name)(struct _GtkBuildable*,char*);
* }
*/
public interface set_name {
void apply(java.lang.foreign.MemorySegment tag, java.lang.foreign.MemorySegment data);
static MemorySegment allocate(set_name fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2543.const$5, fi, constants$13.const$4, scope);
}
static set_name ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _tag, java.lang.foreign.MemorySegment _data) -> {
try {
constants$14.const$0.invokeExact(symbol, _tag, _data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle set_name$VH() {
return constants$2544.const$0;
}
/**
* Getter for field:
* {@snippet :
* void (*set_name)(struct _GtkBuildable*,char*);
* }
*/
public static MemorySegment set_name$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2544.const$0.get(seg);
}
/**
* Setter for field:
* {@snippet :
* void (*set_name)(struct _GtkBuildable*,char*);
* }
*/
public static void set_name$set(MemorySegment seg, MemorySegment x) {
constants$2544.const$0.set(seg, x);
}
public static MemorySegment set_name$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2544.const$0.get(seg.asSlice(index*sizeof()));
}
public static void set_name$set(MemorySegment seg, long index, MemorySegment x) {
constants$2544.const$0.set(seg.asSlice(index*sizeof()), x);
}
public static set_name set_name(MemorySegment segment, Arena scope) {
return set_name.ofAddress(set_name$get(segment), scope);
}
/**
* {@snippet :
* char* (*get_name)(struct _GtkBuildable*);
* }
*/
public interface get_name {
java.lang.foreign.MemorySegment apply(java.lang.foreign.MemorySegment user_data);
static MemorySegment allocate(get_name fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2544.const$1, fi, constants$5.const$2, scope);
}
static get_name ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _user_data) -> {
try {
return (java.lang.foreign.MemorySegment)constants$99.const$0.invokeExact(symbol, _user_data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle get_name$VH() {
return constants$2544.const$2;
}
/**
* Getter for field:
* {@snippet :
* char* (*get_name)(struct _GtkBuildable*);
* }
*/
public static MemorySegment get_name$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2544.const$2.get(seg);
}
/**
* Setter for field:
* {@snippet :
* char* (*get_name)(struct _GtkBuildable*);
* }
*/
public static void get_name$set(MemorySegment seg, MemorySegment x) {
constants$2544.const$2.set(seg, x);
}
public static MemorySegment get_name$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2544.const$2.get(seg.asSlice(index*sizeof()));
}
public static void get_name$set(MemorySegment seg, long index, MemorySegment x) {
constants$2544.const$2.set(seg.asSlice(index*sizeof()), x);
}
public static get_name get_name(MemorySegment segment, Arena scope) {
return get_name.ofAddress(get_name$get(segment), scope);
}
/**
* {@snippet :
* void (*add_child)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*);
* }
*/
public interface add_child {
void apply(java.lang.foreign.MemorySegment model, java.lang.foreign.MemorySegment path, java.lang.foreign.MemorySegment iter, java.lang.foreign.MemorySegment data);
static MemorySegment allocate(add_child fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2544.const$3, fi, constants$42.const$1, scope);
}
static add_child ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _model, java.lang.foreign.MemorySegment _path, java.lang.foreign.MemorySegment _iter, java.lang.foreign.MemorySegment _data) -> {
try {
constants$259.const$4.invokeExact(symbol, _model, _path, _iter, _data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle add_child$VH() {
return constants$2544.const$4;
}
/**
* Getter for field:
* {@snippet :
* void (*add_child)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*);
* }
*/
public static MemorySegment add_child$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2544.const$4.get(seg);
}
/**
* Setter for field:
* {@snippet :
* void (*add_child)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*);
* }
*/
public static void add_child$set(MemorySegment seg, MemorySegment x) {
constants$2544.const$4.set(seg, x);
}
public static MemorySegment add_child$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2544.const$4.get(seg.asSlice(index*sizeof()));
}
public static void add_child$set(MemorySegment seg, long index, MemorySegment x) {
constants$2544.const$4.set(seg.asSlice(index*sizeof()), x);
}
public static add_child add_child(MemorySegment segment, Arena scope) {
return add_child.ofAddress(add_child$get(segment), scope);
}
/**
* {@snippet :
* void (*set_buildable_property)(struct _GtkBuildable*,struct _GtkBuilder*,char*,struct _GValue*);
* }
*/
public interface set_buildable_property {
void apply(java.lang.foreign.MemorySegment model, java.lang.foreign.MemorySegment path, java.lang.foreign.MemorySegment iter, java.lang.foreign.MemorySegment data);
static MemorySegment allocate(set_buildable_property fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2544.const$5, fi, constants$42.const$1, scope);
}
static set_buildable_property ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _model, java.lang.foreign.MemorySegment _path, java.lang.foreign.MemorySegment _iter, java.lang.foreign.MemorySegment _data) -> {
try {
constants$259.const$4.invokeExact(symbol, _model, _path, _iter, _data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle set_buildable_property$VH() {
return constants$2545.const$0;
}
/**
* Getter for field:
* {@snippet :
* void (*set_buildable_property)(struct _GtkBuildable*,struct _GtkBuilder*,char*,struct _GValue*);
* }
*/
public static MemorySegment set_buildable_property$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2545.const$0.get(seg);
}
/**
* Setter for field:
* {@snippet :
* void (*set_buildable_property)(struct _GtkBuildable*,struct _GtkBuilder*,char*,struct _GValue*);
* }
*/
public static void set_buildable_property$set(MemorySegment seg, MemorySegment x) {
constants$2545.const$0.set(seg, x);
}
public static MemorySegment set_buildable_property$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2545.const$0.get(seg.asSlice(index*sizeof()));
}
public static void set_buildable_property$set(MemorySegment seg, long index, MemorySegment x) {
constants$2545.const$0.set(seg.asSlice(index*sizeof()), x);
}
public static set_buildable_property set_buildable_property(MemorySegment segment, Arena scope) {
return set_buildable_property.ofAddress(set_buildable_property$get(segment), scope);
}
/**
* {@snippet :
* struct _GObject* (*construct_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* }
*/
public interface construct_child {
java.lang.foreign.MemorySegment apply(java.lang.foreign.MemorySegment vfs, java.lang.foreign.MemorySegment identifier, java.lang.foreign.MemorySegment user_data);
static MemorySegment allocate(construct_child fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2545.const$1, fi, constants$23.const$0, scope);
}
static construct_child ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _vfs, java.lang.foreign.MemorySegment _identifier, java.lang.foreign.MemorySegment _user_data) -> {
try {
return (java.lang.foreign.MemorySegment)constants$732.const$0.invokeExact(symbol, _vfs, _identifier, _user_data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle construct_child$VH() {
return constants$2545.const$2;
}
/**
* Getter for field:
* {@snippet :
* struct _GObject* (*construct_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* }
*/
public static MemorySegment construct_child$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2545.const$2.get(seg);
}
/**
* Setter for field:
* {@snippet :
* struct _GObject* (*construct_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* }
*/
public static void construct_child$set(MemorySegment seg, MemorySegment x) {
constants$2545.const$2.set(seg, x);
}
public static MemorySegment construct_child$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2545.const$2.get(seg.asSlice(index*sizeof()));
}
public static void construct_child$set(MemorySegment seg, long index, MemorySegment x) {
constants$2545.const$2.set(seg.asSlice(index*sizeof()), x);
}
public static construct_child construct_child(MemorySegment segment, Arena scope) {
return construct_child.ofAddress(construct_child$get(segment), scope);
}
/**
* {@snippet :
* int (*custom_tag_start)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,struct _GMarkupParser*,void**);
* }
*/
public interface custom_tag_start {
int apply(java.lang.foreign.MemorySegment _x0, java.lang.foreign.MemorySegment _x1, java.lang.foreign.MemorySegment _x2, java.lang.foreign.MemorySegment _x3, java.lang.foreign.MemorySegment _x4, java.lang.foreign.MemorySegment _x5);
static MemorySegment allocate(custom_tag_start fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2545.const$3, fi, constants$638.const$1, scope);
}
static custom_tag_start ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment __x0, java.lang.foreign.MemorySegment __x1, java.lang.foreign.MemorySegment __x2, java.lang.foreign.MemorySegment __x3, java.lang.foreign.MemorySegment __x4, java.lang.foreign.MemorySegment __x5) -> {
try {
return (int)constants$1009.const$1.invokeExact(symbol, __x0, __x1, __x2, __x3, __x4, __x5);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle custom_tag_start$VH() {
return constants$2545.const$4;
}
/**
* Getter for field:
* {@snippet :
* int (*custom_tag_start)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,struct _GMarkupParser*,void**);
* }
*/
public static MemorySegment custom_tag_start$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2545.const$4.get(seg);
}
/**
* Setter for field:
* {@snippet :
* int (*custom_tag_start)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,struct _GMarkupParser*,void**);
* }
*/
public static void custom_tag_start$set(MemorySegment seg, MemorySegment x) {
constants$2545.const$4.set(seg, x);
}
public static MemorySegment custom_tag_start$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2545.const$4.get(seg.asSlice(index*sizeof()));
}
public static void custom_tag_start$set(MemorySegment seg, long index, MemorySegment x) {
constants$2545.const$4.set(seg.asSlice(index*sizeof()), x);
}
public static custom_tag_start custom_tag_start(MemorySegment segment, Arena scope) {
return custom_tag_start.ofAddress(custom_tag_start$get(segment), scope);
}
/**
* {@snippet :
* void (*custom_tag_end)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void**);
* }
*/
public interface custom_tag_end {
void apply(java.lang.foreign.MemorySegment cell_layout, java.lang.foreign.MemorySegment cell, java.lang.foreign.MemorySegment tree_model, java.lang.foreign.MemorySegment iter, java.lang.foreign.MemorySegment data);
static MemorySegment allocate(custom_tag_end fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2545.const$5, fi, constants$331.const$1, scope);
}
static custom_tag_end ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _cell_layout, java.lang.foreign.MemorySegment _cell, java.lang.foreign.MemorySegment _tree_model, java.lang.foreign.MemorySegment _iter, java.lang.foreign.MemorySegment _data) -> {
try {
constants$916.const$3.invokeExact(symbol, _cell_layout, _cell, _tree_model, _iter, _data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle custom_tag_end$VH() {
return constants$2546.const$0;
}
/**
* Getter for field:
* {@snippet :
* void (*custom_tag_end)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void**);
* }
*/
public static MemorySegment custom_tag_end$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2546.const$0.get(seg);
}
/**
* Setter for field:
* {@snippet :
* void (*custom_tag_end)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void**);
* }
*/
public static void custom_tag_end$set(MemorySegment seg, MemorySegment x) {
constants$2546.const$0.set(seg, x);
}
public static MemorySegment custom_tag_end$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2546.const$0.get(seg.asSlice(index*sizeof()));
}
public static void custom_tag_end$set(MemorySegment seg, long index, MemorySegment x) {
constants$2546.const$0.set(seg.asSlice(index*sizeof()), x);
}
public static custom_tag_end custom_tag_end(MemorySegment segment, Arena scope) {
return custom_tag_end.ofAddress(custom_tag_end$get(segment), scope);
}
/**
* {@snippet :
* void (*custom_finished)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void*);
* }
*/
public interface custom_finished {
void apply(java.lang.foreign.MemorySegment cell_layout, java.lang.foreign.MemorySegment cell, java.lang.foreign.MemorySegment tree_model, java.lang.foreign.MemorySegment iter, java.lang.foreign.MemorySegment data);
static MemorySegment allocate(custom_finished fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2546.const$1, fi, constants$331.const$1, scope);
}
static custom_finished ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _cell_layout, java.lang.foreign.MemorySegment _cell, java.lang.foreign.MemorySegment _tree_model, java.lang.foreign.MemorySegment _iter, java.lang.foreign.MemorySegment _data) -> {
try {
constants$916.const$3.invokeExact(symbol, _cell_layout, _cell, _tree_model, _iter, _data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle custom_finished$VH() {
return constants$2546.const$2;
}
/**
* Getter for field:
* {@snippet :
* void (*custom_finished)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void*);
* }
*/
public static MemorySegment custom_finished$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2546.const$2.get(seg);
}
/**
* Setter for field:
* {@snippet :
* void (*custom_finished)(struct _GtkBuildable*,struct _GtkBuilder*,struct _GObject*,char*,void*);
* }
*/
public static void custom_finished$set(MemorySegment seg, MemorySegment x) {
constants$2546.const$2.set(seg, x);
}
public static MemorySegment custom_finished$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2546.const$2.get(seg.asSlice(index*sizeof()));
}
public static void custom_finished$set(MemorySegment seg, long index, MemorySegment x) {
constants$2546.const$2.set(seg.asSlice(index*sizeof()), x);
}
public static custom_finished custom_finished(MemorySegment segment, Arena scope) {
return custom_finished.ofAddress(custom_finished$get(segment), scope);
}
/**
* {@snippet :
* void (*parser_finished)(struct _GtkBuildable*,struct _GtkBuilder*);
* }
*/
public interface parser_finished {
void apply(java.lang.foreign.MemorySegment tag, java.lang.foreign.MemorySegment data);
static MemorySegment allocate(parser_finished fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2546.const$3, fi, constants$13.const$4, scope);
}
static parser_finished ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _tag, java.lang.foreign.MemorySegment _data) -> {
try {
constants$14.const$0.invokeExact(symbol, _tag, _data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle parser_finished$VH() {
return constants$2546.const$4;
}
/**
* Getter for field:
* {@snippet :
* void (*parser_finished)(struct _GtkBuildable*,struct _GtkBuilder*);
* }
*/
public static MemorySegment parser_finished$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2546.const$4.get(seg);
}
/**
* Setter for field:
* {@snippet :
* void (*parser_finished)(struct _GtkBuildable*,struct _GtkBuilder*);
* }
*/
public static void parser_finished$set(MemorySegment seg, MemorySegment x) {
constants$2546.const$4.set(seg, x);
}
public static MemorySegment parser_finished$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2546.const$4.get(seg.asSlice(index*sizeof()));
}
public static void parser_finished$set(MemorySegment seg, long index, MemorySegment x) {
constants$2546.const$4.set(seg.asSlice(index*sizeof()), x);
}
public static parser_finished parser_finished(MemorySegment segment, Arena scope) {
return parser_finished.ofAddress(parser_finished$get(segment), scope);
}
/**
* {@snippet :
* struct _GObject* (*get_internal_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* }
*/
public interface get_internal_child {
java.lang.foreign.MemorySegment apply(java.lang.foreign.MemorySegment vfs, java.lang.foreign.MemorySegment identifier, java.lang.foreign.MemorySegment user_data);
static MemorySegment allocate(get_internal_child fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$2546.const$5, fi, constants$23.const$0, scope);
}
static get_internal_child ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _vfs, java.lang.foreign.MemorySegment _identifier, java.lang.foreign.MemorySegment _user_data) -> {
try {
return (java.lang.foreign.MemorySegment)constants$732.const$0.invokeExact(symbol, _vfs, _identifier, _user_data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
public static VarHandle get_internal_child$VH() {
return constants$2547.const$0;
}
/**
* Getter for field:
* {@snippet :
* struct _GObject* (*get_internal_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* }
*/
public static MemorySegment get_internal_child$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$2547.const$0.get(seg);
}
/**
* Setter for field:
* {@snippet :
* struct _GObject* (*get_internal_child)(struct _GtkBuildable*,struct _GtkBuilder*,char*);
* }
*/
public static void get_internal_child$set(MemorySegment seg, MemorySegment x) {
constants$2547.const$0.set(seg, x);
}
public static MemorySegment get_internal_child$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$2547.const$0.get(seg.asSlice(index*sizeof()));
}
public static void get_internal_child$set(MemorySegment seg, long index, MemorySegment x) {
constants$2547.const$0.set(seg.asSlice(index*sizeof()), x);
}
public static get_internal_child get_internal_child(MemorySegment segment, Arena scope) {
return get_internal_child.ofAddress(get_internal_child$get(segment), scope);
}
public static long sizeof() { return $LAYOUT().byteSize(); }
public static MemorySegment allocate(SegmentAllocator allocator) { return allocator.allocate($LAYOUT()); }
public static MemorySegment allocateArray(long len, SegmentAllocator allocator) {
return allocator.allocate(MemoryLayout.sequenceLayout(len, $LAYOUT()));
}
public static MemorySegment ofAddress(MemorySegment addr, Arena scope) { return RuntimeHelper.asArray(addr, $LAYOUT(), 1, scope); }
}