![JAR search and dependency download from the Maven repository](/logo.png)
org.purejava.appindicator._GDBusMethodInfo 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 _GDBusMethodInfo {
* int ref_count;
* char* name;
* struct _GDBusArgInfo** in_args;
* struct _GDBusArgInfo** out_args;
* struct _GDBusAnnotationInfo** annotations;
* };
* }
*/
public class _GDBusMethodInfo {
public static MemoryLayout $LAYOUT() {
return constants$881.const$3;
}
public static VarHandle ref_count$VH() {
return constants$881.const$4;
}
/**
* Getter for field:
* {@snippet :
* int ref_count;
* }
*/
public static int ref_count$get(MemorySegment seg) {
return (int)constants$881.const$4.get(seg);
}
/**
* Setter for field:
* {@snippet :
* int ref_count;
* }
*/
public static void ref_count$set(MemorySegment seg, int x) {
constants$881.const$4.set(seg, x);
}
public static int ref_count$get(MemorySegment seg, long index) {
return (int)constants$881.const$4.get(seg.asSlice(index*sizeof()));
}
public static void ref_count$set(MemorySegment seg, long index, int x) {
constants$881.const$4.set(seg.asSlice(index*sizeof()), x);
}
public static VarHandle name$VH() {
return constants$881.const$5;
}
/**
* Getter for field:
* {@snippet :
* char* name;
* }
*/
public static MemorySegment name$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$881.const$5.get(seg);
}
/**
* Setter for field:
* {@snippet :
* char* name;
* }
*/
public static void name$set(MemorySegment seg, MemorySegment x) {
constants$881.const$5.set(seg, x);
}
public static MemorySegment name$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$881.const$5.get(seg.asSlice(index*sizeof()));
}
public static void name$set(MemorySegment seg, long index, MemorySegment x) {
constants$881.const$5.set(seg.asSlice(index*sizeof()), x);
}
public static VarHandle in_args$VH() {
return constants$882.const$0;
}
/**
* Getter for field:
* {@snippet :
* struct _GDBusArgInfo** in_args;
* }
*/
public static MemorySegment in_args$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$882.const$0.get(seg);
}
/**
* Setter for field:
* {@snippet :
* struct _GDBusArgInfo** in_args;
* }
*/
public static void in_args$set(MemorySegment seg, MemorySegment x) {
constants$882.const$0.set(seg, x);
}
public static MemorySegment in_args$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$882.const$0.get(seg.asSlice(index*sizeof()));
}
public static void in_args$set(MemorySegment seg, long index, MemorySegment x) {
constants$882.const$0.set(seg.asSlice(index*sizeof()), x);
}
public static VarHandle out_args$VH() {
return constants$882.const$1;
}
/**
* Getter for field:
* {@snippet :
* struct _GDBusArgInfo** out_args;
* }
*/
public static MemorySegment out_args$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$882.const$1.get(seg);
}
/**
* Setter for field:
* {@snippet :
* struct _GDBusArgInfo** out_args;
* }
*/
public static void out_args$set(MemorySegment seg, MemorySegment x) {
constants$882.const$1.set(seg, x);
}
public static MemorySegment out_args$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$882.const$1.get(seg.asSlice(index*sizeof()));
}
public static void out_args$set(MemorySegment seg, long index, MemorySegment x) {
constants$882.const$1.set(seg.asSlice(index*sizeof()), x);
}
public static VarHandle annotations$VH() {
return constants$882.const$2;
}
/**
* Getter for field:
* {@snippet :
* struct _GDBusAnnotationInfo** annotations;
* }
*/
public static MemorySegment annotations$get(MemorySegment seg) {
return (java.lang.foreign.MemorySegment)constants$882.const$2.get(seg);
}
/**
* Setter for field:
* {@snippet :
* struct _GDBusAnnotationInfo** annotations;
* }
*/
public static void annotations$set(MemorySegment seg, MemorySegment x) {
constants$882.const$2.set(seg, x);
}
public static MemorySegment annotations$get(MemorySegment seg, long index) {
return (java.lang.foreign.MemorySegment)constants$882.const$2.get(seg.asSlice(index*sizeof()));
}
public static void annotations$set(MemorySegment seg, long index, MemorySegment x) {
constants$882.const$2.set(seg.asSlice(index*sizeof()), x);
}
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); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy