Top | ![]() |
![]() |
![]() |
![]() |
gboolean | handle-apply-configuration | Run Last |
gboolean | handle-apply-monitors-config | Run Last |
gboolean | handle-change-backlight | Run Last |
gboolean | handle-get-crtc-gamma | Run Last |
gboolean | handle-get-current-state | Run Last |
gboolean | handle-get-resources | Run Last |
gboolean | handle-set-crtc-gamma | Run Last |
void | monitors-changed | Run Last |
GInterface ╰── PhoshDisplayDbusDisplayConfig GObject ├── GDBusInterfaceSkeleton │ ╰── PhoshDisplayDbusDisplayConfigSkeleton │ ╰── PhoshMonitorManager ╰── GDBusProxy ╰── PhoshDisplayDbusDisplayConfigProxy
PhoshDisplayDbusDisplayConfigProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshDisplayDbusDisplayConfig.
PhoshDisplayDbusDisplayConfigSkeleton implements GDBusInterface and PhoshDisplayDbusDisplayConfig.
PhoshDisplayDbusDisplayConfig is implemented by PhoshDisplayDbusDisplayConfigProxy, PhoshDisplayDbusDisplayConfigSkeleton and PhoshMonitorManager.
GDBusInterfaceInfo *
phosh_display_dbus_display_config_interface_info
(void
);
Gets a machine-readable description of the org.gnome.Mutter.DisplayConfig D-Bus interface.
guint phosh_display_dbus_display_config_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshDisplayDbusDisplayConfig interface for a concrete class. The properties are overridden in the order they are defined.
void phosh_display_dbus_display_config_complete_get_resources (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
,guint serial
,GVariant *crtcs
,GVariant *outputs
,GVariant *modes
,gint max_screen_width
,gint max_screen_height
);
Helper function used in service implementations to finish handling invocations of the GetResources()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_display_dbus_display_config_complete_apply_configuration (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ApplyConfiguration()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_display_dbus_display_config_complete_change_backlight (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
,gint new_value
);
Helper function used in service implementations to finish handling invocations of the ChangeBacklight()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_display_dbus_display_config_complete_get_crtc_gamma (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
,GVariant *red
,GVariant *green
,GVariant *blue
);
Helper function used in service implementations to finish handling invocations of the GetCrtcGamma()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_display_dbus_display_config_complete_set_crtc_gamma (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the SetCrtcGamma()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_display_dbus_display_config_complete_get_current_state (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
,guint serial
,GVariant *monitors
,GVariant *logical_monitors
,GVariant *properties
);
Helper function used in service implementations to finish handling invocations of the GetCurrentState()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_display_dbus_display_config_complete_apply_monitors_config (PhoshDisplayDbusDisplayConfig *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ApplyMonitorsConfig()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void
phosh_display_dbus_display_config_emit_monitors_changed
(PhoshDisplayDbusDisplayConfig *object
);
Emits the "MonitorsChanged" D-Bus signal.
void phosh_display_dbus_display_config_call_get_resources (PhoshDisplayDbusDisplayConfig *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetResources()
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.
You can then call phosh_display_dbus_display_config_call_get_resources_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_get_resources_sync()
for the synchronous, blocking version of this method.
gboolean phosh_display_dbus_display_config_call_get_resources_finish (PhoshDisplayDbusDisplayConfig *proxy
,guint *out_serial
,GVariant **out_crtcs
,GVariant **out_outputs
,GVariant **out_modes
,gint *out_max_screen_width
,gint *out_max_screen_height
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_get_resources()
.
proxy |
||
out_serial |
Return location for return parameter or |
[out] |
out_crtcs |
Return location for return parameter or |
[out] |
out_outputs |
Return location for return parameter or |
[out] |
out_modes |
Return location for return parameter or |
[out] |
out_max_screen_width |
Return location for return parameter or |
[out] |
out_max_screen_height |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_get_resources_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint *out_serial
,GVariant **out_crtcs
,GVariant **out_outputs
,GVariant **out_modes
,gint *out_max_screen_width
,gint *out_max_screen_height
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetResources()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_get_resources()
for the asynchronous version of this method.
proxy |
||
out_serial |
Return location for return parameter or |
[out] |
out_crtcs |
Return location for return parameter or |
[out] |
out_outputs |
Return location for return parameter or |
[out] |
out_modes |
Return location for return parameter or |
[out] |
out_max_screen_width |
Return location for return parameter or |
[out] |
out_max_screen_height |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_call_apply_configuration (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,gboolean arg_persistent
,GVariant *arg_crtcs
,GVariant *arg_outputs
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ApplyConfiguration()
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.
You can then call phosh_display_dbus_display_config_call_apply_configuration_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_apply_configuration_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_persistent |
Argument to pass with the method invocation. |
|
arg_crtcs |
Argument to pass with the method invocation. |
|
arg_outputs |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_display_dbus_display_config_call_apply_configuration_finish (PhoshDisplayDbusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_apply_configuration()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_apply_configuration_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,gboolean arg_persistent
,GVariant *arg_crtcs
,GVariant *arg_outputs
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ApplyConfiguration()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_apply_configuration()
for the asynchronous version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_persistent |
Argument to pass with the method invocation. |
|
arg_crtcs |
Argument to pass with the method invocation. |
|
arg_outputs |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_call_change_backlight (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_output
,gint arg_value
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ChangeBacklight()
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.
You can then call phosh_display_dbus_display_config_call_change_backlight_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_change_backlight_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_output |
Argument to pass with the method invocation. |
|
arg_value |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_display_dbus_display_config_call_change_backlight_finish (PhoshDisplayDbusDisplayConfig *proxy
,gint *out_new_value
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_change_backlight()
.
proxy |
||
out_new_value |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_change_backlight_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_output
,gint arg_value
,gint *out_new_value
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ChangeBacklight()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_change_backlight()
for the asynchronous version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_output |
Argument to pass with the method invocation. |
|
arg_value |
Argument to pass with the method invocation. |
|
out_new_value |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_call_get_crtc_gamma (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_crtc
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetCrtcGamma()
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.
You can then call phosh_display_dbus_display_config_call_get_crtc_gamma_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_get_crtc_gamma_sync()
for the synchronous, blocking version of this method.
gboolean phosh_display_dbus_display_config_call_get_crtc_gamma_finish (PhoshDisplayDbusDisplayConfig *proxy
,GVariant **out_red
,GVariant **out_green
,GVariant **out_blue
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_get_crtc_gamma()
.
proxy |
||
out_red |
Return location for return parameter or |
[out] |
out_green |
Return location for return parameter or |
[out] |
out_blue |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_get_crtc_gamma_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_crtc
,GVariant **out_red
,GVariant **out_green
,GVariant **out_blue
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetCrtcGamma()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_get_crtc_gamma()
for the asynchronous version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_crtc |
Argument to pass with the method invocation. |
|
out_red |
Return location for return parameter or |
[out] |
out_green |
Return location for return parameter or |
[out] |
out_blue |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_call_set_crtc_gamma (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_crtc
,GVariant *arg_red
,GVariant *arg_green
,GVariant *arg_blue
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the SetCrtcGamma()
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.
You can then call phosh_display_dbus_display_config_call_set_crtc_gamma_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_set_crtc_gamma_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_crtc |
Argument to pass with the method invocation. |
|
arg_red |
Argument to pass with the method invocation. |
|
arg_green |
Argument to pass with the method invocation. |
|
arg_blue |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_display_dbus_display_config_call_set_crtc_gamma_finish (PhoshDisplayDbusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_set_crtc_gamma()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_set_crtc_gamma_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_crtc
,GVariant *arg_red
,GVariant *arg_green
,GVariant *arg_blue
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the SetCrtcGamma()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_set_crtc_gamma()
for the asynchronous version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_crtc |
Argument to pass with the method invocation. |
|
arg_red |
Argument to pass with the method invocation. |
|
arg_green |
Argument to pass with the method invocation. |
|
arg_blue |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_call_get_current_state (PhoshDisplayDbusDisplayConfig *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetCurrentState()
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.
You can then call phosh_display_dbus_display_config_call_get_current_state_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_get_current_state_sync()
for the synchronous, blocking version of this method.
gboolean phosh_display_dbus_display_config_call_get_current_state_finish (PhoshDisplayDbusDisplayConfig *proxy
,guint *out_serial
,GVariant **out_monitors
,GVariant **out_logical_monitors
,GVariant **out_properties
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_get_current_state()
.
proxy |
||
out_serial |
Return location for return parameter or |
[out] |
out_monitors |
Return location for return parameter or |
[out] |
out_logical_monitors |
Return location for return parameter or |
[out] |
out_properties |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_get_current_state_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint *out_serial
,GVariant **out_monitors
,GVariant **out_logical_monitors
,GVariant **out_properties
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetCurrentState()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_get_current_state()
for the asynchronous version of this method.
proxy |
||
out_serial |
Return location for return parameter or |
[out] |
out_monitors |
Return location for return parameter or |
[out] |
out_logical_monitors |
Return location for return parameter or |
[out] |
out_properties |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_call_apply_monitors_config (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_method
,GVariant *arg_logical_monitors
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ApplyMonitorsConfig()
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.
You can then call phosh_display_dbus_display_config_call_apply_monitors_config_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_call_apply_monitors_config_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_method |
Argument to pass with the method invocation. |
|
arg_logical_monitors |
Argument to pass with the method invocation. |
|
arg_properties |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_display_dbus_display_config_call_apply_monitors_config_finish (PhoshDisplayDbusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_call_apply_monitors_config()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_display_dbus_display_config_call_apply_monitors_config_sync (PhoshDisplayDbusDisplayConfig *proxy
,guint arg_serial
,guint arg_method
,GVariant *arg_logical_monitors
,GVariant *arg_properties
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ApplyMonitorsConfig()
proxy
. The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_call_apply_monitors_config()
for the asynchronous version of this method.
proxy |
||
arg_serial |
Argument to pass with the method invocation. |
|
arg_method |
Argument to pass with the method invocation. |
|
arg_logical_monitors |
Argument to pass with the method invocation. |
|
arg_properties |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
gint
phosh_display_dbus_display_config_get_power_save_mode
(PhoshDisplayDbusDisplayConfig *object
);
Gets the value of the "PowerSaveMode" D-Bus property.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_display_dbus_display_config_set_power_save_mode (PhoshDisplayDbusDisplayConfig *object
,gint value
);
Sets the "PowerSaveMode" D-Bus property to value
.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_display_dbus_display_config_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.gnome.Mutter.DisplayConfig. See g_dbus_proxy_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_display_dbus_display_config_proxy_new_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.gnome.Mutter.DisplayConfig. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_proxy_new()
for the asynchronous version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_display_dbus_display_config_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_display_dbus_display_config_proxy_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_display_dbus_display_config_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_display_dbus_display_config_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_display_dbus_display_config_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_display_dbus_display_config_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_display_dbus_display_config_proxy_new_for_bus()
for the asynchronous version of this constructor.
PhoshDisplayDbusDisplayConfig *
phosh_display_dbus_display_config_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.gnome.Mutter.DisplayConfig.
struct PhoshDisplayDbusDisplayConfigIface { GTypeInterface parent_iface; gboolean (*handle_apply_configuration) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, gboolean arg_persistent, GVariant *arg_crtcs, GVariant *arg_outputs); gboolean (*handle_apply_monitors_config) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_method, GVariant *arg_logical_monitors, GVariant *arg_properties); gboolean (*handle_change_backlight) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_output, gint arg_value); gboolean (*handle_get_crtc_gamma) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_crtc); gboolean (*handle_get_current_state) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation); gboolean (*handle_get_resources) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation); gboolean (*handle_set_crtc_gamma) ( PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_crtc, GVariant *arg_red, GVariant *arg_green, GVariant *arg_blue); gint (*get_power_save_mode) (PhoshDisplayDbusDisplayConfig *object); void (*monitors_changed) ( PhoshDisplayDbusDisplayConfig *object); };
Virtual table for the D-Bus interface org.gnome.Mutter.DisplayConfig.
The parent interface. |
||
Handler for the “handle-apply-configuration” signal. |
||
Handler for the “handle-apply-monitors-config” signal. |
||
Handler for the “handle-change-backlight” signal. |
||
Handler for the “handle-get-crtc-gamma” signal. |
||
Handler for the “handle-get-current-state” signal. |
||
Handler for the “handle-get-resources” signal. |
||
Handler for the “handle-set-crtc-gamma” signal. |
||
Getter for the “power-save-mode” property. |
||
Handler for the “monitors-changed” signal. |
struct PhoshDisplayDbusDisplayConfigProxy;
The PhoshDisplayDbusDisplayConfigProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshDisplayDbusDisplayConfigProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshDisplayDbusDisplayConfigProxy.
struct PhoshDisplayDbusDisplayConfigSkeleton;
The PhoshDisplayDbusDisplayConfigSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshDisplayDbusDisplayConfigSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshDisplayDbusDisplayConfigSkeleton.
typedef struct _PhoshDisplayDbusDisplayConfig PhoshDisplayDbusDisplayConfig;
Abstract interface type for the D-Bus interface org.gnome.Mutter.DisplayConfig.
typedef struct _PhoshDisplayDbusDisplayConfigProxyPrivate PhoshDisplayDbusDisplayConfigProxyPrivate;
“power-save-mode”
property “power-save-mode” gint
Represents the D-Bus property "PowerSaveMode".
Since the D-Bus property for this GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
Flags: Read / Write
Default value: 0
“handle-apply-configuration”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, gboolean arg_persistent, GVariant *arg_crtcs, GVariant *arg_outputs, gpointer user_data)
Signal emitted when a remote caller is invoking the ApplyConfiguration()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_apply_configuration()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_serial |
Argument passed by remote caller. |
|
arg_persistent |
Argument passed by remote caller. |
|
arg_crtcs |
Argument passed by remote caller. |
|
arg_outputs |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-apply-monitors-config”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_method, GVariant *arg_logical_monitors, GVariant *arg_properties, gpointer user_data)
Signal emitted when a remote caller is invoking the ApplyMonitorsConfig()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_apply_monitors_config()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_serial |
Argument passed by remote caller. |
|
arg_method |
Argument passed by remote caller. |
|
arg_logical_monitors |
Argument passed by remote caller. |
|
arg_properties |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-change-backlight”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_output, gint arg_value, gpointer user_data)
Signal emitted when a remote caller is invoking the ChangeBacklight()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_change_backlight()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_serial |
Argument passed by remote caller. |
|
arg_output |
Argument passed by remote caller. |
|
arg_value |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-get-crtc-gamma”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_crtc, gpointer user_data)
Signal emitted when a remote caller is invoking the GetCrtcGamma()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_get_crtc_gamma()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_serial |
Argument passed by remote caller. |
|
arg_crtc |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-get-current-state”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the GetCurrentState()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_get_current_state()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-get-resources”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the GetResources()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_get_resources()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-set-crtc-gamma”
signalgboolean user_function (PhoshDisplayDbusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_crtc, GVariant *arg_red, GVariant *arg_green, GVariant *arg_blue, gpointer user_data)
Signal emitted when a remote caller is invoking the SetCrtcGamma()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_display_dbus_display_config_complete_set_crtc_gamma()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_serial |
Argument passed by remote caller. |
|
arg_crtc |
Argument passed by remote caller. |
|
arg_red |
Argument passed by remote caller. |
|
arg_green |
Argument passed by remote caller. |
|
arg_blue |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“monitors-changed”
signalvoid user_function (PhoshDisplayDbusDisplayConfig *object, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "MonitorsChanged" is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name()
to make the object emit the D-Bus signal.
Flags: Run Last