### Interface

# Phosh DBusDisplayConfig

#### Description [src]

    interface Phosh.DBusDisplayConfig : GObject.Object

Abstract interface type for the D-Bus interface org.gnome.Mutter.DisplayConfig.

#### Prerequisite

In order to implement DBusDisplayConfig, your type must inherit from`GObject`.

#### Implementations

- PhoshDBusDisplayConfigProxy
- PhoshDBusDisplayConfigSkeleton
- PhoshMonitorManager

#### Functions

###### phosh_dbus_display_config_interface_info

Gets a machine-readable description of the org.gnome.Mutter.DisplayConfig D-Bus interface.

###### phosh_dbus_display_config_override_properties

Overrides all `GObject` properties in the `PhoshDBusDisplayConfig` interface for a concrete class. The properties are overridden in the order they are defined.

#### Instance methods

###### phosh_dbus_display_config_call_apply_configuration

Asynchronously invokes the ApplyConfiguration() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_apply_configuration_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_apply_configuration_finish

Finishes an operation started with phosh_dbus_display_config_call_apply_configuration().

###### phosh_dbus_display_config_call_apply_configuration_sync

Synchronously invokes the ApplyConfiguration() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_apply_monitors_config

Asynchronously invokes the ApplyMonitorsConfig() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_apply_monitors_config_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_apply_monitors_config_finish

Finishes an operation started with phosh_dbus_display_config_call_apply_monitors_config().

###### phosh_dbus_display_config_call_apply_monitors_config_sync

Synchronously invokes the ApplyMonitorsConfig() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_change_backlight

Asynchronously invokes the ChangeBacklight() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_change_backlight_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_change_backlight_finish

Finishes an operation started with phosh_dbus_display_config_call_change_backlight().

###### phosh_dbus_display_config_call_change_backlight_sync

Synchronously invokes the ChangeBacklight() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_get_crtc_gamma

Asynchronously invokes the GetCrtcGamma() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_get_crtc_gamma_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_get_crtc_gamma_finish

Finishes an operation started with phosh_dbus_display_config_call_get_crtc_gamma().

###### phosh_dbus_display_config_call_get_crtc_gamma_sync

Synchronously invokes the GetCrtcGamma() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_get_current_state

Asynchronously invokes the GetCurrentState() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_get_current_state_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_get_current_state_finish

Finishes an operation started with phosh_dbus_display_config_call_get_current_state().

###### phosh_dbus_display_config_call_get_current_state_sync

Synchronously invokes the GetCurrentState() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_get_resources

Asynchronously invokes the GetResources() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_get_resources_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_get_resources_finish

Finishes an operation started with phosh_dbus_display_config_call_get_resources().

###### phosh_dbus_display_config_call_get_resources_sync

Synchronously invokes the GetResources() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_set_crtc_gamma

Asynchronously invokes the SetCrtcGamma() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_set_crtc_gamma_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_set_crtc_gamma_finish

Finishes an operation started with phosh_dbus_display_config_call_set_crtc_gamma().

###### phosh_dbus_display_config_call_set_crtc_gamma_sync

Synchronously invokes the SetCrtcGamma() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_call_set_output_ctm

Asynchronously invokes the SetOutputCTM() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_dbus_display_config_call_set_output_ctm_finish()` to get the result of the operation.

###### phosh_dbus_display_config_call_set_output_ctm_finish

Finishes an operation started with phosh_dbus_display_config_call_set_output_ctm().

###### phosh_dbus_display_config_call_set_output_ctm_sync

Synchronously invokes the SetOutputCTM() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_dbus_display_config_complete_apply_configuration

Helper function used in service implementations to finish handling invocations of the ApplyConfiguration() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_apply_monitors_config

Helper function used in service implementations to finish handling invocations of the ApplyMonitorsConfig() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_change_backlight

Helper function used in service implementations to finish handling invocations of the ChangeBacklight() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_get_crtc_gamma

Helper function used in service implementations to finish handling invocations of the GetCrtcGamma() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_get_current_state

Helper function used in service implementations to finish handling invocations of the GetCurrentState() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_get_resources

Helper function used in service implementations to finish handling invocations of the GetResources() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_set_crtc_gamma

Helper function used in service implementations to finish handling invocations of the SetCrtcGamma() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_complete_set_output_ctm

Helper function used in service implementations to finish handling invocations of the SetOutputCTM() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_dbus_display_config_dup_backlight

Gets a copy of the “Backlight” D-Bus property.

###### phosh_dbus_display_config_emit_monitors_changed

Emits the “MonitorsChanged” D-Bus signal.

###### phosh_dbus_display_config_get_apply_monitors_config_allowed

Gets the value of the “ApplyMonitorsConfigAllowed” D-Bus property.

###### phosh_dbus_display_config_get_backlight

Gets the value of the “Backlight” D-Bus property.

###### phosh_dbus_display_config_get_night_light_supported

Gets the value of the “NightLightSupported” D-Bus property.

###### phosh_dbus_display_config_get_panel_orientation_managed

Gets the value of the “PanelOrientationManaged” D-Bus property.

###### phosh_dbus_display_config_get_power_save_mode

Gets the value of the “PowerSaveMode” D-Bus property.

###### phosh_dbus_display_config_set_apply_monitors_config_allowed

Sets the “ApplyMonitorsConfigAllowed” D-Bus property to `value`.

###### phosh_dbus_display_config_set_backlight

Sets the “Backlight” D-Bus property to `value`.

###### phosh_dbus_display_config_set_night_light_supported

Sets the “NightLightSupported” D-Bus property to `value`.

###### phosh_dbus_display_config_set_panel_orientation_managed

Sets the “PanelOrientationManaged” D-Bus property to `value`.

###### phosh_dbus_display_config_set_power_save_mode

Sets the “PowerSaveMode” D-Bus property to `value`.

#### Properties

###### Phosh.DBusDisplayConfig:apply-monitors-config-allowed

Represents the D-Bus property “ApplyMonitorsConfigAllowed”.

###### Phosh.DBusDisplayConfig:backlight

Represents the D-Bus property “Backlight”.

###### 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.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.

#### Interface structure

    struct PhoshDBusDisplayConfigIface {
      GTypeInterface parent_iface;
      gboolean (* handle_apply_configuration) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        gboolean arg_persistent,
        GVariant* arg_crtcs,
        GVariant* arg_outputs
      );
      gboolean (* handle_apply_monitors_config) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_method,
        GVariant* arg_logical_monitors,
        GVariant* arg_properties
      );
      gboolean (* handle_change_backlight) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_output,
        gint arg_value
      );
      gboolean (* handle_get_crtc_gamma) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_crtc
      );
      gboolean (* handle_get_current_state) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_get_resources) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_set_crtc_gamma) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_crtc,
        GVariant* arg_red,
        GVariant* arg_green,
        GVariant* arg_blue
      );
      gboolean (* handle_set_output_ctm) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_output,
        GVariant* arg_ctm
      );
      gboolean (* get_apply_monitors_config_allowed) (
        PhoshDBusDisplayConfig* object
      );
      GVariant* (* get_backlight) (
        PhoshDBusDisplayConfig* object
      );
      gboolean (* get_night_light_supported) (
        PhoshDBusDisplayConfig* object
      );
      gboolean (* get_panel_orientation_managed) (
        PhoshDBusDisplayConfig* object
      );
      gint (* get_power_save_mode) (
        PhoshDBusDisplayConfig* object
      );
      void (* monitors_changed) (
        PhoshDBusDisplayConfig* object
      );

    }

Virtual table for the D-Bus interface org.gnome.Mutter.DisplayConfig.

###### Interface members

`parent_iface` |
    GTypeInterface
| The parent interface.
`handle_apply_configuration` |
    gboolean (* handle_apply_configuration) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        gboolean arg_persistent,
        GVariant* arg_crtcs,
        GVariant* arg_outputs
      )
| Handler for the `PhoshDBusDisplayConfig::handle-apply-configuration` signal.
`handle_apply_monitors_config` |
    gboolean (* handle_apply_monitors_config) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_method,
        GVariant* arg_logical_monitors,
        GVariant* arg_properties
      )
| Handler for the `PhoshDBusDisplayConfig::handle-apply-monitors-config` signal.
`handle_change_backlight` |
    gboolean (* handle_change_backlight) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_output,
        gint arg_value
      )
| Handler for the `PhoshDBusDisplayConfig::handle-change-backlight` signal.
`handle_get_crtc_gamma` |
    gboolean (* handle_get_crtc_gamma) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_crtc
      )
| Handler for the `PhoshDBusDisplayConfig::handle-get-crtc-gamma` signal.
`handle_get_current_state` |
    gboolean (* handle_get_current_state) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusDisplayConfig::handle-get-current-state` signal.
`handle_get_resources` |
    gboolean (* handle_get_resources) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusDisplayConfig::handle-get-resources` signal.
`handle_set_crtc_gamma` |
    gboolean (* handle_set_crtc_gamma) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_crtc,
        GVariant* arg_red,
        GVariant* arg_green,
        GVariant* arg_blue
      )
| Handler for the `PhoshDBusDisplayConfig::handle-set-crtc-gamma` signal.
`handle_set_output_ctm` |
    gboolean (* handle_set_output_ctm) (
        PhoshDBusDisplayConfig* object,
        GDBusMethodInvocation* invocation,
        guint arg_serial,
        guint arg_output,
        GVariant* arg_ctm
      )
| Handler for the `PhoshDBusDisplayConfig::handle-set-output-ctm` signal.
`get_apply_monitors_config_allowed` |
    gboolean (* get_apply_monitors_config_allowed) (
        PhoshDBusDisplayConfig* object
      )
| Getter for the `PhoshDBusDisplayConfig:apply-monitors-config-allowed` property.
`get_backlight` |
    GVariant* (* get_backlight) (
        PhoshDBusDisplayConfig* object
      )
| Getter for the `PhoshDBusDisplayConfig:backlight` property.
`get_night_light_supported` |
    gboolean (* get_night_light_supported) (
        PhoshDBusDisplayConfig* object
      )
| Getter for the `PhoshDBusDisplayConfig:night-light-supported` property.
`get_panel_orientation_managed` |
    gboolean (* get_panel_orientation_managed) (
        PhoshDBusDisplayConfig* object
      )
| Getter for the `PhoshDBusDisplayConfig:panel-orientation-managed` property.
`get_power_save_mode` |
    gint (* get_power_save_mode) (
        PhoshDBusDisplayConfig* object
      )
| Getter for the `PhoshDBusDisplayConfig:power-save-mode` property.
`monitors_changed` |
    void (* monitors_changed) (
        PhoshDBusDisplayConfig* object
      )
| Handler for the `PhoshDBusDisplayConfig::monitors-changed` signal.

#### Virtual methods

###### Phosh.DBusDisplayConfig.get_apply_monitors_config_allowed

Gets the value of the “ApplyMonitorsConfigAllowed” D-Bus property.

###### Phosh.DBusDisplayConfig.get_backlight

Gets the value of the “Backlight” D-Bus property.

###### Phosh.DBusDisplayConfig.get_night_light_supported

Gets the value of the “NightLightSupported” D-Bus property.

###### Phosh.DBusDisplayConfig.get_panel_orientation_managed

Gets the value of the “PanelOrientationManaged” D-Bus property.

###### Phosh.DBusDisplayConfig.get_power_save_mode

Gets the value of the “PowerSaveMode” D-Bus property.

###### Phosh.DBusDisplayConfig.handle_apply_configuration

Handler for the `PhoshDBusDisplayConfig::handle-apply-configuration` signal.

###### Phosh.DBusDisplayConfig.handle_apply_monitors_config

Handler for the `PhoshDBusDisplayConfig::handle-apply-monitors-config` signal.

###### Phosh.DBusDisplayConfig.handle_change_backlight

Handler for the `PhoshDBusDisplayConfig::handle-change-backlight` signal.

###### Phosh.DBusDisplayConfig.handle_get_crtc_gamma

Handler for the `PhoshDBusDisplayConfig::handle-get-crtc-gamma` signal.

###### Phosh.DBusDisplayConfig.handle_get_current_state

Handler for the `PhoshDBusDisplayConfig::handle-get-current-state` signal.

###### Phosh.DBusDisplayConfig.handle_get_resources

Handler for the `PhoshDBusDisplayConfig::handle-get-resources` signal.

###### Phosh.DBusDisplayConfig.handle_set_crtc_gamma

Handler for the `PhoshDBusDisplayConfig::handle-set-crtc-gamma` signal.

###### Phosh.DBusDisplayConfig.handle_set_output_ctm

Handler for the `PhoshDBusDisplayConfig::handle-set-output-ctm` signal.

###### Phosh.DBusDisplayConfig.monitors_changed

Handler for the `PhoshDBusDisplayConfig::monitors-changed` signal.