Class DBusPropertyInfo

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusPropertyInfo
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DBusPropertyInfo extends ProxyInstance
Information about a D-Bus property on a D-Bus interface.
Since:
2.26
  • Constructor Details

    • DBusPropertyInfo

      public DBusPropertyInfo(MemorySegment address)
      Create a DBusPropertyInfo proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • DBusPropertyInfo

      public DBusPropertyInfo(Arena arena)
      Allocate a new DBusPropertyInfo.
      Parameters:
      arena - to control the memory allocation scope
    • DBusPropertyInfo

      public DBusPropertyInfo()
      Allocate a new DBusPropertyInfo. The memory is allocated with Arena.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 field refCount
      name - value for the field name
      signature - value for the field signature
      flags - value for the field flags
      annotations - value for the field annotations
      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 with Arena.ofAuto().
      Parameters:
      refCount - value for the field refCount
      name - value for the field name
      signature - value for the field signature
      flags - value for the field flags
      annotations - value for the field annotations
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the DBusPropertyInfo class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readRefCount

      public int readRefCount()
      Read the value of the field ref_count.
      Returns:
      The value of the field ref_count
    • writeRefCount

      public void writeRefCount(int refCount)
      Write a value in the field ref_count.
      Parameters:
      refCount - The new value for the field ref_count
    • readName

      public String readName()
      Read the value of the field name.
      Returns:
      The value of the field name
    • writeName

      public void writeName(String name, Arena _arena)
      Write a value in the field name.
      Parameters:
      name - The new value for the field name
      _arena - to control the memory allocation scope
    • readSignature

      public String readSignature()
      Read the value of the field signature.
      Returns:
      The value of the field signature
    • writeSignature

      public void writeSignature(String signature, Arena _arena)
      Write a value in the field signature.
      Parameters:
      signature - The new value for the field signature
      _arena - to control the memory allocation scope
    • readFlags

      public Set<DBusPropertyInfoFlags> readFlags()
      Read the value of the field flags.
      Returns:
      The value of the field flags
    • writeFlags

      public void writeFlags(Set<DBusPropertyInfoFlags> flags)
      Write a value in the field flags.
      Parameters:
      flags - The new value for the field flags
    • readAnnotations

      public @Nullable DBusAnnotationInfo @Nullable [] readAnnotations()
      Read the value of the field annotations.
      Returns:
      The value of the field annotations
    • writeAnnotations

      public void writeAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena)
      Write a value in the field annotations.
      Parameters:
      annotations - The new value for the field annotations
      _arena - to control the memory allocation scope
    • ref

      public DBusPropertyInfo 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 of info. When its reference count drops to 0, the memory used is freed.
      Since:
      2.26