Class

PhoshMonitorManager

Description [src]

final class Phosh.MonitorManager : Phosh.DBusDisplayConfigSkeleton {
  /* No available fields */
}

The singleton that manages available monitors

This keeps track of all monitors and handles the org.gnome.Mutter.DisplayConfig DBus interface via PhoshDBusDisplayConfig. This includes individual monitor configuration as well as blanking/power saving.

Constructors

phosh_monitor_manager_new
No description available.

Instance methods

phosh_monitor_manager_apply_monitor_config

Applies a full output configuration.

phosh_monitor_manager_enable_fallback

When all heads are disabled look for a fallback to enable. This can be useful when e.g. only external display is enabled and that gets unplugged.

phosh_monitor_manager_find_monitor
No description available.
phosh_monitor_manager_get_monitor
No description available.
phosh_monitor_manager_get_num_monitors
No description available.
phosh_monitor_manager_set_monitor_transform

Sets monitor’s transform. This will become active after the next call to #phosh_monitor_manager_apply_monitor_config().

phosh_monitor_manager_set_power_save_mode

Applies a power save mode to all monitors.

Methods inherited from GDBusInterfaceSkeleton (13)
g_dbus_interface_skeleton_export

Exports interface_ at object_path on connection.

Available since: 2.30

g_dbus_interface_skeleton_flush

If interface_ has outstanding changes, request for these changes to be emitted immediately.

Available since: 2.30

g_dbus_interface_skeleton_get_connection

Gets the first connection that interface_ is exported on, if any.

Available since: 2.30

g_dbus_interface_skeleton_get_connections

Gets a list of the connections that interface_ is exported on.

Available since: 2.32

g_dbus_interface_skeleton_get_flags

Gets the GDBusInterfaceSkeletonFlags that describes what the behavior of interface_

Available since: 2.30

g_dbus_interface_skeleton_get_info

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

Available since: 2.30

g_dbus_interface_skeleton_get_object_path

Gets the object path that interface_ is exported on, if any.

Available since: 2.30

g_dbus_interface_skeleton_get_properties

Gets all D-Bus properties for interface_.

Available since: 2.30

g_dbus_interface_skeleton_get_vtable

Gets the interface vtable for the D-Bus interface implemented by interface_. The returned function pointers should expect interface_ itself to be passed as user_data.

Available since: 2.30

g_dbus_interface_skeleton_has_connection

Checks if interface_ is exported on connection.

Available since: 2.32

g_dbus_interface_skeleton_set_flags

Sets flags describing what the behavior of skeleton should be.

Available since: 2.30

g_dbus_interface_skeleton_unexport

Stops exporting interface_ on all connections it is exported on.

Available since: 2.30

g_dbus_interface_skeleton_unexport_from_connection

Stops exporting interface_ on connection.

Available since: 2.32

Methods inherited from GObject (42)

Please see GObject for a full list of methods.

Methods inherited from GDBusInterface (4)
g_dbus_interface_dup_object

Gets the GDBusObject that interface_ belongs to, if any.

Available since: 2.32

g_dbus_interface_get_info

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

Available since: 2.30

g_dbus_interface_get_object

Gets the GDBusObject that interface_ belongs to, if any.

Available since: 2.30

g_dbus_interface_set_object

Sets the GDBusObject for interface_ to object.

Available since: 2.30

Methods inherited from PhoshDBusDisplayConfig (41)

Please see PhoshDBusDisplayConfig for a full list of methods.

Properties

Phosh.MonitorManager:n-monitors
No description available.
Phosh.MonitorManager:sensor-proxy-manager
No description available.
Properties inherited from GDBusInterfaceSkeleton (1)
Gio.DBusInterfaceSkeleton:g-flags

Flags from the GDBusInterfaceSkeletonFlags enumeration.

Available since: 2.30

Properties inherited from PhoshDBusDisplayConfig (4)
Phosh.DBusDisplayConfig:apply-monitors-config-allowed

Represents the D-Bus property ApplyMonitorsConfigAllowed”.

Phosh.DBusDisplayConfig:night-light-supported

Represents the D-Bus property NightLightSupported”.

Phosh.DBusDisplayConfig:panel-orientation-managed

Represents the D-Bus property PanelOrientationManaged”.

Phosh.DBusDisplayConfig:power-save-mode

Represents the D-Bus property PowerSaveMode”.

Signals

Phosh.MonitorManager::monitor-added

Emitted whenever a monitor was added.

Phosh.MonitorManager::monitor-removed

Emitted whenever a monitor is about to be removed.

Signals inherited from GDBusInterfaceSkeleton (1)
Gio.DBusInterfaceSkeleton::g-authorize-method

Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.

Available since: 2.30

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from PhoshDBusDisplayConfig (9)
Phosh.DBusDisplayConfig::handle-apply-configuration

Signal emitted when a remote caller is invoking the ApplyConfiguration() D-Bus method.

Phosh.DBusDisplayConfig::handle-apply-monitors-config

Signal emitted when a remote caller is invoking the ApplyMonitorsConfig() D-Bus method.

Phosh.DBusDisplayConfig::handle-change-backlight

Signal emitted when a remote caller is invoking the ChangeBacklight() D-Bus method.

Phosh.DBusDisplayConfig::handle-get-crtc-gamma

Signal emitted when a remote caller is invoking the GetCrtcGamma() D-Bus method.

Phosh.DBusDisplayConfig::handle-get-current-state

Signal emitted when a remote caller is invoking the GetCurrentState() D-Bus method.

Phosh.DBusDisplayConfig::handle-get-resources

Signal emitted when a remote caller is invoking the GetResources() D-Bus method.

Phosh.DBusDisplayConfig::handle-set-crtc-gamma

Signal emitted when a remote caller is invoking the SetCrtcGamma() D-Bus method.

Phosh.DBusDisplayConfig::handle-set-output-ctm

Signal emitted when a remote caller is invoking the SetOutputCTM() D-Bus method.

Phosh.DBusDisplayConfig::monitors-changed

On the client-side, this signal is emitted whenever the D-Bus signal MonitorsChanged” is received.

Class structure

struct PhoshMonitorManagerClass {
  PhoshDBusDisplayConfigSkeletonClass parent_class;
  
}
Class members
parent_class
PhoshDBusDisplayConfigSkeletonClass
  No description available.