Top | ![]() |
![]() |
![]() |
![]() |
gboolean | apply-monitors-config-allowed | Read / Write |
gboolean | night-light-supported | Read / Write |
gboolean | panel-orientation-managed | Read / Write |
int | power-save-mode | Read / Write |
GInterface ╰── PhoshDBusDisplayConfig GObject ├── GDBusInterfaceSkeleton │ ╰── PhoshDBusDisplayConfigSkeleton │ ╰── PhoshMonitorManager ╰── GDBusProxy ╰── PhoshDBusDisplayConfigProxy
PhoshDBusDisplayConfigProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshDBusDisplayConfig.
PhoshDBusDisplayConfigSkeleton implements GDBusInterface and PhoshDBusDisplayConfig.
PhoshDBusDisplayConfig is implemented by PhoshDBusDisplayConfigProxy, PhoshDBusDisplayConfigSkeleton and PhoshMonitorManager.
GDBusInterfaceInfo *
phosh_dbus_display_config_interface_info
(void
);
Gets a machine-readable description of the org.gnome.Mutter.DisplayConfig D-Bus interface.
guint phosh_dbus_display_config_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshDBusDisplayConfig interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
void phosh_dbus_display_config_complete_get_resources (PhoshDBusDisplayConfig *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_dbus_display_config_complete_apply_configuration (PhoshDBusDisplayConfig *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_dbus_display_config_complete_change_backlight (PhoshDBusDisplayConfig *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_dbus_display_config_complete_get_crtc_gamma (PhoshDBusDisplayConfig *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_dbus_display_config_complete_set_crtc_gamma (PhoshDBusDisplayConfig *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_dbus_display_config_complete_get_current_state (PhoshDBusDisplayConfig *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_dbus_display_config_complete_apply_monitors_config (PhoshDBusDisplayConfig *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_dbus_display_config_complete_set_output_ctm (PhoshDBusDisplayConfig *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the SetOutputCTM()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void
phosh_dbus_display_config_emit_monitors_changed
(PhoshDBusDisplayConfig *object
);
Emits the "MonitorsChanged" D-Bus signal.
void phosh_dbus_display_config_call_get_resources (PhoshDBusDisplayConfig *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 (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.
See phosh_dbus_display_config_call_get_resources_sync()
for the synchronous, blocking version of this method.
proxy |
||
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_dbus_display_config_call_get_resources_finish (PhoshDBusDisplayConfig *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_dbus_display_config_call_get_resources()
.
proxy |
||
out_serial |
Return location for return parameter or |
[out][optional] |
out_crtcs |
Return location for return parameter or |
[out][optional] |
out_outputs |
Return location for return parameter or |
[out][optional] |
out_modes |
Return location for return parameter or |
[out][optional] |
out_max_screen_width |
Return location for return parameter or |
[out][optional] |
out_max_screen_height |
Return location for return parameter or |
[out][optional] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_display_config_call_get_resources_sync (PhoshDBusDisplayConfig *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_dbus_display_config_call_get_resources()
for the asynchronous version of this method.
proxy |
||
out_serial |
Return location for return parameter or |
[out][optional] |
out_crtcs |
Return location for return parameter or |
[out][optional] |
out_outputs |
Return location for return parameter or |
[out][optional] |
out_modes |
Return location for return parameter or |
[out][optional] |
out_max_screen_width |
Return location for return parameter or |
[out][optional] |
out_max_screen_height |
Return location for return parameter or |
[out][optional] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_display_config_call_apply_configuration (PhoshDBusDisplayConfig *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 (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.
See phosh_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_dbus_display_config_call_apply_configuration_finish (PhoshDBusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_call_apply_configuration()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_display_config_call_apply_configuration_sync (PhoshDBusDisplayConfig *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_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_dbus_display_config_call_change_backlight (PhoshDBusDisplayConfig *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 (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.
See phosh_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_dbus_display_config_call_change_backlight_finish (PhoshDBusDisplayConfig *proxy
,gint *out_new_value
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_call_change_backlight()
.
proxy |
||
out_new_value |
Return location for return parameter or |
[out][optional] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_display_config_call_change_backlight_sync (PhoshDBusDisplayConfig *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_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][optional] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_display_config_call_get_crtc_gamma (PhoshDBusDisplayConfig *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 (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.
See phosh_dbus_display_config_call_get_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. |
|
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_dbus_display_config_call_get_crtc_gamma_finish (PhoshDBusDisplayConfig *proxy
,GVariant **out_red
,GVariant **out_green
,GVariant **out_blue
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_call_get_crtc_gamma()
.
proxy |
||
out_red |
Return location for return parameter or |
[out][optional] |
out_green |
Return location for return parameter or |
[out][optional] |
out_blue |
Return location for return parameter or |
[out][optional] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_display_config_call_get_crtc_gamma_sync (PhoshDBusDisplayConfig *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_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][optional] |
out_green |
Return location for return parameter or |
[out][optional] |
out_blue |
Return location for return parameter or |
[out][optional] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_display_config_call_set_crtc_gamma (PhoshDBusDisplayConfig *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 (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.
See phosh_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_dbus_display_config_call_set_crtc_gamma_finish (PhoshDBusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_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_dbus_display_config_call_set_crtc_gamma_sync (PhoshDBusDisplayConfig *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_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_dbus_display_config_call_get_current_state (PhoshDBusDisplayConfig *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 (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.
See phosh_dbus_display_config_call_get_current_state_sync()
for the synchronous, blocking version of this method.
proxy |
||
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_dbus_display_config_call_get_current_state_finish (PhoshDBusDisplayConfig *proxy
,guint *out_serial
,GVariant **out_monitors
,GVariant **out_logical_monitors
,GVariant **out_properties
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_call_get_current_state()
.
proxy |
||
out_serial |
Return location for return parameter or |
[out][optional] |
out_monitors |
Return location for return parameter or |
[out][optional] |
out_logical_monitors |
Return location for return parameter or |
[out][optional] |
out_properties |
Return location for return parameter or |
[out][optional] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_display_config_call_get_current_state_sync (PhoshDBusDisplayConfig *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_dbus_display_config_call_get_current_state()
for the asynchronous version of this method.
proxy |
||
out_serial |
Return location for return parameter or |
[out][optional] |
out_monitors |
Return location for return parameter or |
[out][optional] |
out_logical_monitors |
Return location for return parameter or |
[out][optional] |
out_properties |
Return location for return parameter or |
[out][optional] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_display_config_call_apply_monitors_config (PhoshDBusDisplayConfig *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 (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.
See phosh_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_dbus_display_config_call_apply_monitors_config_finish (PhoshDBusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_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_dbus_display_config_call_apply_monitors_config_sync (PhoshDBusDisplayConfig *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_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 |
void phosh_dbus_display_config_call_set_output_ctm (PhoshDBusDisplayConfig *proxy
,guint arg_serial
,guint arg_output
,GVariant *arg_ctm
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the SetOutputCTM()
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.
See phosh_dbus_display_config_call_set_output_ctm_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_ctm |
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_dbus_display_config_call_set_output_ctm_finish (PhoshDBusDisplayConfig *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_call_set_output_ctm()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_display_config_call_set_output_ctm_sync (PhoshDBusDisplayConfig *proxy
,guint arg_serial
,guint arg_output
,GVariant *arg_ctm
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the SetOutputCTM()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_display_config_call_set_output_ctm()
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_ctm |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
gint
phosh_dbus_display_config_get_power_save_mode
(PhoshDBusDisplayConfig *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_dbus_display_config_set_power_save_mode (PhoshDBusDisplayConfig *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]
gboolean
phosh_dbus_display_config_get_panel_orientation_managed
(PhoshDBusDisplayConfig *object
);
Gets the value of the "PanelOrientationManaged" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_display_config_set_panel_orientation_managed (PhoshDBusDisplayConfig *object
,gboolean value
);
Sets the "PanelOrientationManaged" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
gboolean
phosh_dbus_display_config_get_apply_monitors_config_allowed
(PhoshDBusDisplayConfig *object
);
Gets the value of the "ApplyMonitorsConfigAllowed" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_display_config_set_apply_monitors_config_allowed (PhoshDBusDisplayConfig *object
,gboolean value
);
Sets the "ApplyMonitorsConfigAllowed" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
gboolean
phosh_dbus_display_config_get_night_light_supported
(PhoshDBusDisplayConfig *object
);
Gets the value of the "NightLightSupported" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_display_config_set_night_light_supported (PhoshDBusDisplayConfig *object
,gboolean value
);
Sets the "NightLightSupported" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
void phosh_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 (see g_main_context_push_thread_default()
).
You can then call phosh_dbus_display_config_proxy_new_finish()
to get the result of the operation.
See phosh_dbus_display_config_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
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 |
PhoshDBusDisplayConfig * phosh_dbus_display_config_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusDisplayConfigProxy]
PhoshDBusDisplayConfig * phosh_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_dbus_display_config_proxy_new()
for the asynchronous version of this constructor.
connection |
||
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 |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusDisplayConfigProxy]
void phosh_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_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 (see g_main_context_push_thread_default()
).
You can then call phosh_dbus_display_config_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_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 |
PhoshDBusDisplayConfig * phosh_dbus_display_config_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_display_config_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusDisplayConfigProxy]
PhoshDBusDisplayConfig * phosh_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_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_dbus_display_config_proxy_new_for_bus()
for the asynchronous 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] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusDisplayConfigProxy]
PhoshDBusDisplayConfig *
phosh_dbus_display_config_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.gnome.Mutter.DisplayConfig.
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); 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.
GTypeInterface |
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. |
||
Handler for the “handle-set-output-ctm” signal. |
||
Getter for the “apply-monitors-config-allowed” property. |
||
Getter for the “night-light-supported” property. |
||
Getter for the “panel-orientation-managed” property. |
||
Getter for the “power-save-mode” property. |
||
Handler for the “monitors-changed” signal. |
struct PhoshDBusDisplayConfigProxy;
The PhoshDBusDisplayConfigProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshDBusDisplayConfigProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshDBusDisplayConfigProxy.
struct PhoshDBusDisplayConfigSkeleton;
The PhoshDBusDisplayConfigSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshDBusDisplayConfigSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshDBusDisplayConfigSkeleton.
typedef struct _PhoshDBusDisplayConfig PhoshDBusDisplayConfig;
Abstract interface type for the D-Bus interface org.gnome.Mutter.DisplayConfig.
typedef struct _PhoshDBusDisplayConfigProxyPrivate PhoshDBusDisplayConfigProxyPrivate;
“apply-monitors-config-allowed”
property“apply-monitors-config-allowed” gboolean
Represents the D-Bus property "ApplyMonitorsConfigAllowed".
Since the D-Bus property for this GObject 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.
Owner: PhoshDBusDisplayConfig
Flags: Read / Write
Default value: FALSE
“night-light-supported”
property“night-light-supported” gboolean
Represents the D-Bus property "NightLightSupported".
Since the D-Bus property for this GObject 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.
Owner: PhoshDBusDisplayConfig
Flags: Read / Write
Default value: FALSE
“panel-orientation-managed”
property“panel-orientation-managed” gboolean
Represents the D-Bus property "PanelOrientationManaged".
Since the D-Bus property for this GObject 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.
Owner: PhoshDBusDisplayConfig
Flags: Read / Write
Default value: FALSE
“power-save-mode”
property “power-save-mode” int
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.
Owner: PhoshDBusDisplayConfig
Flags: Read / Write
Default value: 0
“handle-apply-configuration”
signalgboolean user_function (PhoshDBusDisplayConfig *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_dbus_display_config_complete_apply_configuration()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
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. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-apply-monitors-config”
signalgboolean user_function (PhoshDBusDisplayConfig *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_dbus_display_config_complete_apply_monitors_config()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
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. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-change-backlight”
signalgboolean user_function (PhoshDBusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_output, int 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_dbus_display_config_complete_change_backlight()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
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. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-get-crtc-gamma”
signalgboolean user_function (PhoshDBusDisplayConfig *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_dbus_display_config_complete_get_crtc_gamma()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
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. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-get-current-state”
signalgboolean user_function (PhoshDBusDisplayConfig *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_dbus_display_config_complete_get_current_state()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-get-resources”
signalgboolean user_function (PhoshDBusDisplayConfig *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_dbus_display_config_complete_get_resources()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-set-crtc-gamma”
signalgboolean user_function (PhoshDBusDisplayConfig *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_dbus_display_config_complete_set_crtc_gamma()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
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. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-set-output-ctm”
signalgboolean user_function (PhoshDBusDisplayConfig *object, GDBusMethodInvocation *invocation, guint arg_serial, guint arg_output, GVariant *arg_ctm, gpointer user_data)
Signal emitted when a remote caller is invoking the SetOutputCTM()
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_dbus_display_config_complete_set_output_ctm()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_serial |
Argument passed by remote caller. |
|
arg_output |
Argument passed by remote caller. |
|
arg_ctm |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“monitors-changed”
signalvoid user_function (PhoshDBusDisplayConfig *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