XApp.SwitcherooControl

g GObject.GInterface GObject.GInterface XApp.SwitcherooControl XApp.SwitcherooControl GObject.GInterface->XApp.SwitcherooControl

Implementations:

XApp.SwitcherooControlProxy, XApp.SwitcherooControlSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

Virtual Methods

None

Properties

Name

Type

Flags

Short Description

gpus

GLib.Variant

r/w

GPUs

has-dual-gpu

bool

r/w

HasDualGpu

num-gpus

int

r/w

NumGPUs

Signals

None

Fields

None

Class Details

class XApp.SwitcherooControl
Bases:

GObject.GInterface

Structure:

XApp.SwitcherooControlIface

Abstract interface type for the D-Bus interface ‘net.hadess.SwitcherooControl [gdbus-interface-net-hadess-SwitcherooControl.top_of_page]’.

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the ‘net.hadess.SwitcherooControl [gdbus-interface-net-hadess-SwitcherooControl.top_of_page]’ D-Bus interface.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the XApp.SwitcherooControl interface for a concrete class. The properties are overridden in the order they are defined.

Property Details

XApp.SwitcherooControl.props.gpus
Name:

gpus

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“GPUs” [gdbus-property-net-hadess-SwitcherooControl.GPUs]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

XApp.SwitcherooControl.props.has_dual_gpu
Name:

has-dual-gpu

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“HasDualGpu” [gdbus-property-net-hadess-SwitcherooControl.HasDualGpu]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

XApp.SwitcherooControl.props.num_gpus
Name:

num-gpus

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“NumGPUs” [gdbus-property-net-hadess-SwitcherooControl.NumGPUs]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.