Package org.gnome.gio
Class DBusPropertyInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.DBusPropertyInfo
-
Constructor Summary
ConstructorDescriptionAllocate a new DBusPropertyInfo.DBusPropertyInfo
(int refCount, String name, String signature, Set<DBusPropertyInfoFlags> flags, DBusAnnotationInfo[] annotations) Allocate a new DBusPropertyInfo with the fields set to the provided values.DBusPropertyInfo
(int refCount, String name, String signature, Set<DBusPropertyInfoFlags> flags, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusPropertyInfo with the fields set to the provided values.DBusPropertyInfo
(Arena arena) Allocate a new DBusPropertyInfo.DBusPropertyInfo
(MemorySegment address) Create a DBusPropertyInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the DBusPropertyInfo classRead the value of the fieldannotations
.Read the value of the fieldflags
.readName()
Read the value of the fieldname
.int
Read the value of the fieldref_count
.Read the value of the fieldsignature
.ref()
If this DBusPropertyInfo is statically allocated does nothing.void
unref()
If this DBusPropertyInfo is statically allocated, does nothing.void
writeAnnotations
(DBusAnnotationInfo[] annotations, Arena _arena) Write a value in the fieldannotations
.void
writeFlags
(Set<DBusPropertyInfoFlags> flags) Write a value in the fieldflags
.void
Write a value in the fieldname
.void
writeRefCount
(int refCount) Write a value in the fieldref_count
.void
writeSignature
(String signature, Arena _arena) Write a value in the fieldsignature
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusPropertyInfo
Create a DBusPropertyInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DBusPropertyInfo
Allocate a new DBusPropertyInfo.- Parameters:
arena
- to control the memory allocation scope
-
DBusPropertyInfo
public DBusPropertyInfo()Allocate a new DBusPropertyInfo. The memory is allocated withArena.ofAuto()
. -
DBusPropertyInfo
public DBusPropertyInfo(int refCount, String name, String signature, Set<DBusPropertyInfoFlags> flags, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusPropertyInfo with the fields set to the provided values.- Parameters:
refCount
- value for the fieldrefCount
name
- value for the fieldname
signature
- value for the fieldsignature
flags
- value for the fieldflags
annotations
- value for the fieldannotations
arena
- to control the memory allocation scope
-
DBusPropertyInfo
public DBusPropertyInfo(int refCount, String name, String signature, Set<DBusPropertyInfoFlags> flags, DBusAnnotationInfo[] annotations) Allocate a new DBusPropertyInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
refCount
- value for the fieldrefCount
name
- value for the fieldname
signature
- value for the fieldsignature
flags
- value for the fieldflags
annotations
- 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
-
readSignature
Read the value of the fieldsignature
.- Returns:
- The value of the field
signature
-
writeSignature
-
readFlags
Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-
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 DBusPropertyInfo is statically allocated does nothing. Otherwise increases the reference count.- Returns:
- The same this DBusPropertyInfo.
-
unref
public void unref()If this DBusPropertyInfo is statically allocated, does nothing. Otherwise decreases the reference count of this DBusPropertyInfo. When its reference count drops to 0, the memory used is freed.
-