|
mate-desktop 1.29.2
Library with common API for various MATE modules
|
Data Structures | |
| struct | MateRROutputInfo |
| struct | MateRROutputInfoClass |
| struct | MateRRConfig |
| struct | MateRRConfigClass |
Typedefs | |
| typedef struct MateRROutputInfoPrivate | MateRROutputInfoPrivate |
| typedef struct MateRRConfigPrivate | MateRRConfigPrivate |
| #define MATE_IS_RR_CONFIG | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_CONFIG)) |
| #define MATE_IS_RR_CONFIG_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_CONFIG)) |
| #define MATE_IS_RR_OUTPUT_INFO | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_OUTPUT_INFO)) |
| #define MATE_IS_RR_OUTPUT_INFO_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_OUTPUT_INFO)) |
| #define MATE_RR_CONFIG | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_CONFIG, MateRRConfig)) |
| #define MATE_RR_CONFIG_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_CONFIG, MateRRConfigClass)) |
| #define MATE_RR_CONFIG_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_CONFIG, MateRRConfigClass)) |
| #define MATE_RR_OUTPUT_INFO | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfo)) |
| #define MATE_RR_OUTPUT_INFO_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfoClass)) |
| #define MATE_RR_OUTPUT_INFO_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfoClass)) |
| #define MATE_TYPE_RR_CONFIG (mate_rr_config_get_type()) |
| #define MATE_TYPE_RR_OUTPUT_INFO (mate_rr_output_info_get_type()) |
| typedef struct MateRRConfigPrivate MateRRConfigPrivate |
| typedef struct MateRROutputInfoPrivate MateRROutputInfoPrivate |
| gboolean mate_rr_config_applicable | ( | MateRRConfig * | configuration, |
| MateRRScreen * | screen, | ||
| GError ** | error | ||
| ) |
References crtc_assignment_free(), crtc_assignment_new(), make_outputs(), MATE_IS_RR_CONFIG, MATE_IS_RR_SCREEN, and CrtcAssignment::screen.
| gboolean mate_rr_config_apply_from_filename_with_time | ( | MateRRScreen * | screen, |
| const char * | filename, | ||
| guint32 | timestamp, | ||
| GError ** | error | ||
| ) |
References MATE_IS_RR_SCREEN, mate_rr_config_apply_with_time(), mate_rr_config_ensure_primary(), mate_rr_config_load_filename(), mate_rr_screen_refresh(), MATE_TYPE_RR_CONFIG, and CrtcAssignment::screen.
| gboolean mate_rr_config_apply_with_time | ( | MateRRConfig * | configuration, |
| MateRRScreen * | screen, | ||
| guint32 | timestamp, | ||
| GError ** | error | ||
| ) |
References crtc_assignment_apply(), crtc_assignment_free(), crtc_assignment_new(), make_outputs(), MATE_IS_RR_CONFIG, MATE_IS_RR_SCREEN, and CrtcAssignment::screen.
Referenced by mate_rr_config_apply_from_filename_with_time().
| gboolean mate_rr_config_ensure_primary | ( | MateRRConfig * | configuration | ) |
References _mate_rr_output_name_is_laptop(), CrtcAssignment::info, MATE_IS_RR_CONFIG, MateRRConfigPrivate::outputs, MateRROutputInfoPrivate::primary, MateRROutputInfo::priv, MateRRConfig::priv, MateRROutputInfoPrivate::x, and MateRROutputInfoPrivate::y.
Referenced by mate_rr_config_apply_from_filename_with_time().
| gboolean mate_rr_config_equal | ( | MateRRConfig * | config1, |
| MateRRConfig * | config2 | ||
| ) |
References find_output(), MATE_IS_RR_CONFIG, MateRROutputInfoPrivate::name, output_equal(), MateRRConfigPrivate::outputs, MateRROutputInfo::priv, and MateRRConfig::priv.
| char * mate_rr_config_get_backup_filename | ( | void | ) |
References CONFIG_BACKUP_BASENAME, and ensure_config_directory().
Referenced by mate_rr_config_save().
| gboolean mate_rr_config_get_clone | ( | MateRRConfig * | self | ) |
mate_rr_config_get_clone:
Returns: whether at least two outputs are at (0, 0) offset and they have the same width/height. Those outputs are of course connected and on (i.e. they have a CRTC assigned).
References MateRRConfigPrivate::clone, MATE_IS_RR_CONFIG, and MateRRConfig::priv.
Referenced by create_label_window(), and create_label_windows().
| char * mate_rr_config_get_intended_filename | ( | void | ) |
References CONFIG_INTENDED_BASENAME, and ensure_config_directory().
Referenced by mate_rr_config_load_filename(), mate_rr_config_new_stored(), and mate_rr_config_save().
| MateRROutputInfo ** mate_rr_config_get_outputs | ( | MateRRConfig * | self | ) |
mate_rr_config_get_outputs:
Returns: (array zero-terminated=1) (element-type MateDesktop.RROutputInfo) (transfer none): the output configuration for this MateRRConfig
References MATE_IS_RR_CONFIG, MateRRConfigPrivate::outputs, and MateRRConfig::priv.
Referenced by count_outputs(), create_label_windows(), and mate_rr_labeler_get_rgba_for_output().
| GType mate_rr_config_get_type | ( | void | ) |
| gboolean mate_rr_config_load_current | ( | MateRRConfig * | self, |
| GError ** | error | ||
| ) |
References MateRROutputInfoPrivate::aspect, MateRRConfigPrivate::clone, MateRROutputInfoPrivate::connected, decode_edid(), MateRROutputInfoPrivate::display_name, MateRROutputInfoPrivate::height, CrtcAssignment::info, make_display_name(), MATE_IS_RR_CONFIG, mate_rr_config_match(), mate_rr_crtc_get_current_mode(), mate_rr_crtc_get_current_rotation(), mate_rr_crtc_get_position(), mate_rr_mode_get_freq(), mate_rr_mode_get_height(), mate_rr_mode_get_width(), mate_rr_output_get_crtc(), mate_rr_output_get_edid_data(), mate_rr_output_get_is_primary(), mate_rr_output_get_name(), mate_rr_output_get_preferred_mode(), mate_rr_output_is_connected(), mate_rr_output_is_laptop(), mate_rr_output_list_modes(), MATE_RR_ROTATION_0, mate_rr_screen_list_outputs(), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfoPrivate::name, MateRROutputInfoPrivate::on, MateRRConfigPrivate::outputs, MateRROutputInfoPrivate::pref_height, MateRROutputInfoPrivate::pref_width, MateRROutputInfoPrivate::primary, MateRROutputInfo::priv, MateRRConfig::priv, MateRROutputInfoPrivate::product, MateRROutputInfoPrivate::rate, MateRROutputInfoPrivate::rotation, MateRRConfigPrivate::screen, MateRROutputInfoPrivate::serial, MateRROutputInfoPrivate::vendor, MateRROutputInfoPrivate::width, MateRROutputInfoPrivate::x, and MateRROutputInfoPrivate::y.
Referenced by mate_rr_config_new_current().
| gboolean mate_rr_config_load_filename | ( | MateRRConfig * | self, |
| const gchar * | filename, | ||
| GError ** | error | ||
| ) |
| gboolean mate_rr_config_match | ( | MateRRConfig * | config1, |
| MateRRConfig * | config2 | ||
| ) |
References find_output(), MATE_IS_RR_CONFIG, MateRROutputInfoPrivate::name, output_match(), MateRRConfigPrivate::outputs, MateRROutputInfo::priv, and MateRRConfig::priv.
Referenced by mate_rr_config_load_current(), mate_rr_config_load_filename(), and mate_rr_config_save().
| MateRRConfig * mate_rr_config_new_current | ( | MateRRScreen * | screen, |
| GError ** | error | ||
| ) |
References mate_rr_config_load_current(), MATE_TYPE_RR_CONFIG, and CrtcAssignment::screen.
Referenced by mate_rr_config_load_filename().
| MateRRConfig * mate_rr_config_new_stored | ( | MateRRScreen * | screen, |
| GError ** | error | ||
| ) |
References mate_rr_config_get_intended_filename(), mate_rr_config_load_filename(), MATE_TYPE_RR_CONFIG, and CrtcAssignment::screen.
| void mate_rr_config_sanitize | ( | MateRRConfig * | configuration | ) |
| gboolean mate_rr_config_save | ( | MateRRConfig * | configuration, |
| GError ** | error | ||
| ) |
References configurations_read_from_file(), emit_configuration(), MATE_IS_RR_CONFIG, mate_rr_config_get_backup_filename(), mate_rr_config_get_intended_filename(), and mate_rr_config_match().
| void mate_rr_config_set_clone | ( | MateRRConfig * | configuration, |
| gboolean | clone | ||
| ) |
References MateRRConfigPrivate::clone, MATE_IS_RR_CONFIG, and MateRRConfig::priv.
| double mate_rr_output_info_get_aspect_ratio | ( | MateRROutputInfo * | self | ) |
References MateRROutputInfoPrivate::aspect, MATE_IS_RR_OUTPUT_INFO, and MateRROutputInfo::priv.
| char * mate_rr_output_info_get_display_name | ( | MateRROutputInfo * | self | ) |
mate_rr_output_info_get_display_name:
Returns: (transfer none): the display name of this output
References MateRROutputInfoPrivate::display_name, MATE_IS_RR_OUTPUT_INFO, and MateRROutputInfo::priv.
Referenced by create_label_window().
| void mate_rr_output_info_get_geometry | ( | MateRROutputInfo * | self, |
| int * | x, | ||
| int * | y, | ||
| int * | width, | ||
| int * | height | ||
| ) |
mate_rr_output_info_get_geometry: @self: a MateRROutputInfo @x: (out) (allow-none): @y: (out) (allow-none): @width: (out) (allow-none): @height: (out) (allow-none):
References MateRROutputInfoPrivate::height, MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, MateRROutputInfoPrivate::width, MateRROutputInfoPrivate::x, and MateRROutputInfoPrivate::y.
Referenced by create_label_window().
| char * mate_rr_output_info_get_name | ( | MateRROutputInfo * | self | ) |
mate_rr_output_info_get_name:
Returns: (transfer none): the output name
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::name, and MateRROutputInfo::priv.
Referenced by create_label_window().
| int mate_rr_output_info_get_preferred_height | ( | MateRROutputInfo * | self | ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::pref_height, and MateRROutputInfo::priv.
| int mate_rr_output_info_get_preferred_width | ( | MateRROutputInfo * | self | ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::pref_width, and MateRROutputInfo::priv.
| gboolean mate_rr_output_info_get_primary | ( | MateRROutputInfo * | self | ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::primary, and MateRROutputInfo::priv.
| guint mate_rr_output_info_get_product | ( | MateRROutputInfo * | self | ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, and MateRROutputInfoPrivate::product.
| int mate_rr_output_info_get_refresh_rate | ( | MateRROutputInfo * | self | ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, and MateRROutputInfoPrivate::rate.
| MateRRRotation mate_rr_output_info_get_rotation | ( | MateRROutputInfo * | self | ) |
| guint mate_rr_output_info_get_serial | ( | MateRROutputInfo * | self | ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, and MateRROutputInfoPrivate::serial.
| GType mate_rr_output_info_get_type | ( | void | ) |
| void mate_rr_output_info_get_vendor | ( | MateRROutputInfo * | self, |
| gchar * | vendor | ||
| ) |
mate_rr_output_info_get_vendor: @self: a MateRROutputInfo @vendor: (out caller-allocates) (array fixed-size=4):
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, and MateRROutputInfoPrivate::vendor.
| gboolean mate_rr_output_info_is_active | ( | MateRROutputInfo * | self | ) |
mate_rr_output_info_is_active:
Returns: whether there is a CRTC assigned to this output (i.e. a signal is being sent to it)
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::on, and MateRROutputInfo::priv.
Referenced by create_label_windows().
| gboolean mate_rr_output_info_is_connected | ( | MateRROutputInfo * | self | ) |
mate_rr_output_info_is_connected:
Returns: whether the output is physically connected to a monitor
References MateRROutputInfoPrivate::connected, MATE_IS_RR_OUTPUT_INFO, and MateRROutputInfo::priv.
| void mate_rr_output_info_set_active | ( | MateRROutputInfo * | self, |
| gboolean | active | ||
| ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::on, and MateRROutputInfo::priv.
| void mate_rr_output_info_set_geometry | ( | MateRROutputInfo * | self, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
mate_rr_output_info_set_geometry: @self: a MateRROutputInfo @x: x offset for monitor @y: y offset for monitor @width: monitor width @height: monitor height
Set the geometry for the monitor connected to the specified output.
References MateRROutputInfoPrivate::height, MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, MateRROutputInfoPrivate::width, MateRROutputInfoPrivate::x, and MateRROutputInfoPrivate::y.
| void mate_rr_output_info_set_primary | ( | MateRROutputInfo * | self, |
| gboolean | primary | ||
| ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfoPrivate::primary, and MateRROutputInfo::priv.
| void mate_rr_output_info_set_refresh_rate | ( | MateRROutputInfo * | self, |
| int | rate | ||
| ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, and MateRROutputInfoPrivate::rate.
| void mate_rr_output_info_set_rotation | ( | MateRROutputInfo * | self, |
| MateRRRotation | rotation | ||
| ) |
References MATE_IS_RR_OUTPUT_INFO, MateRROutputInfo::priv, and MateRROutputInfoPrivate::rotation.