Package org.gnome.gio
Class DBusPropertyInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusPropertyInfo
- All Implemented Interfaces:
Proxy
Information about a D-Bus property on a D-Bus interface.
- Since:
- 2.26
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the DBusPropertyInfo class@Nullable DBusAnnotationInfo @Nullable []Read the value of the fieldannotations.Read the value of the fieldflags.readName()Read the value of the fieldname.intRead the value of the fieldref_count.Read the value of the fieldsignature.ref()If this DBusPropertyInfo is statically allocated does nothing.voidunref()If this DBusPropertyInfo is statically allocated, does nothing.voidwriteAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena) Write a value in the fieldannotations.voidwriteFlags(Set<DBusPropertyInfoFlags> flags) Write a value in the fieldflags.voidWrite a value in the fieldname.voidwriteRefCount(int refCount) Write a value in the fieldref_count.voidwriteSignature(String signature, Arena _arena) Write a value in the fieldsignature.Methods inherited from class org.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 fieldrefCountname- value for the fieldnamesignature- value for the fieldsignatureflags- value for the fieldflagsannotations- value for the fieldannotationsarena- 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 fieldrefCountname- value for the fieldnamesignature- value for the fieldsignatureflags- value for the fieldflagsannotations- value for the fieldannotations
-
-
Method Details
-
getType
Get the GType of the DBusPropertyInfo class- Returns:
- the GType
-
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
info. - Since:
- 2.26
-
unref
public void unref()If this DBusPropertyInfo 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
-