XApp.SwitcherooControl¶
- Implementations:
Methods¶
class |
|
class |
|
Virtual Methods¶
None
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
GPUs |
||
r/w |
HasDualGpu |
||
r/w |
NumGPUs |
Signals¶
None
Fields¶
None
Class Details¶
- class XApp.SwitcherooControl¶
- Bases:
- Structure:
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:
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:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theXApp.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:
- Default Value:
- Flags:
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¶
-
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¶
-
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.