Class DBusSignalInfo

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

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

    • DBusSignalInfo

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

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

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

    • getType

      public static @Nullable Type getType()
      Get the GType of the DBusSignalInfo 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
    • readArgs

      public @Nullable DBusArgInfo @Nullable [] readArgs()
      Read the value of the field args.
      Returns:
      The value of the field args
    • writeArgs

      public void writeArgs(@Nullable DBusArgInfo @Nullable [] args, Arena _arena)
      Write a value in the field args.
      Parameters:
      args - The new value for the field args
      _arena - to control the memory allocation scope
    • 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 DBusSignalInfo 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 of info. When its reference count drops to 0, the memory used is freed.
      Since:
      2.26