Package org.gnome.gio
Class DBusSignalInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusSignalInfo
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new DBusSignalInfo.DBusSignalInfo(int refCount, String name, DBusArgInfo[] args, DBusAnnotationInfo[] annotations) Allocate a new DBusSignalInfo with the fields set to the provided values.DBusSignalInfo(int refCount, String name, DBusArgInfo[] args, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusSignalInfo with the fields set to the provided values.DBusSignalInfo(Arena arena) Allocate a new DBusSignalInfo.DBusSignalInfo(MemorySegment address) Create a DBusSignalInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the DBusSignalInfo class@Nullable DBusAnnotationInfo @Nullable []Read the value of the fieldannotations.@Nullable DBusArgInfo @Nullable []readArgs()Read the value of the fieldargs.readName()Read the value of the fieldname.intRead the value of the fieldref_count.ref()If this DBusSignalInfo is statically allocated does nothing.voidunref()If this DBusSignalInfo is statically allocated, does nothing.voidwriteAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena) Write a value in the fieldannotations.voidwriteArgs(@Nullable DBusArgInfo @Nullable [] args, Arena _arena) Write a value in the fieldargs.voidWrite a value in the fieldname.voidwriteRefCount(int refCount) Write a value in the fieldref_count.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusSignalInfo
Create a DBusSignalInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DBusSignalInfo
Allocate a new DBusSignalInfo.- Parameters:
arena- to control the memory allocation scope
-
DBusSignalInfo
public DBusSignalInfo()Allocate a new DBusSignalInfo. The memory is allocated withArena.ofAuto(). -
DBusSignalInfo
public DBusSignalInfo(int refCount, String name, DBusArgInfo[] args, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusSignalInfo with the fields set to the provided values.- Parameters:
refCount- value for the fieldrefCountname- value for the fieldnameargs- value for the fieldargsannotations- value for the fieldannotationsarena- to control the memory allocation scope
-
DBusSignalInfo
public DBusSignalInfo(int refCount, String name, DBusArgInfo[] args, DBusAnnotationInfo[] annotations) Allocate a new DBusSignalInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
refCount- value for the fieldrefCountname- value for the fieldnameargs- value for the fieldargsannotations- value for the fieldannotations
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRefCount
public int readRefCount()Read the value of the fieldref_count.- Returns:
- The value of the field
ref_count
-
writeRefCount
public void writeRefCount(int refCount) Write a value in the fieldref_count.- Parameters:
refCount- The new value for the fieldref_count
-
readName
-
writeName
-
readArgs
Read the value of the fieldargs.- Returns:
- The value of the field
args
-
writeArgs
Write a value in the fieldargs.- Parameters:
args- The new value for the fieldargs_arena- to control the memory allocation scope
-
readAnnotations
Read the value of the fieldannotations.- Returns:
- The value of the field
annotations
-
writeAnnotations
Write a value in the fieldannotations.- Parameters:
annotations- The new value for the fieldannotations_arena- to control the memory allocation scope
-
ref
If this DBusSignalInfo is statically allocated does nothing. Otherwise increases the reference count.- Returns:
- The same
info. - Since:
- 2.26
-
unref
public void unref()If this DBusSignalInfo is statically allocated, does nothing. Otherwise decreases the reference count ofinfo.When its reference count drops to 0, the memory used is freed.- Since:
- 2.26
-