|
mate-desktop 1.29.2
Library with common API for various MATE modules
|
#include <glib.h>#include <gdk/gdk.h>Data Structures | |
| struct | MateRRScreen |
| struct | MateRRScreenClass |
Macros | |
| #define | MATE_RR_ERROR (mate_rr_error_quark ()) |
| #define | MATE_RR_CONNECTOR_TYPE_PANEL "Panel" /* This is a laptop's built-in LCD */ |
| #define | MATE_TYPE_RR_SCREEN (mate_rr_screen_get_type()) |
| #define | MATE_RR_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_SCREEN, MateRRScreen)) |
| #define | MATE_IS_RR_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_SCREEN)) |
| #define | MATE_RR_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_SCREEN, MateRRScreenClass)) |
| #define | MATE_IS_RR_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_SCREEN)) |
| #define | MATE_RR_SCREEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_SCREEN, MateRRScreenClass)) |
| #define | MATE_TYPE_RR_OUTPUT (mate_rr_output_get_type()) |
| #define | MATE_TYPE_RR_CRTC (mate_rr_crtc_get_type()) |
| #define | MATE_TYPE_RR_MODE (mate_rr_mode_get_type()) |
Typedefs | |
| typedef struct MateRRScreenPrivate | MateRRScreenPrivate |
| typedef struct MateRROutput | MateRROutput |
| typedef struct MateRRCrtc | MateRRCrtc |
| typedef struct MateRRMode | MateRRMode |
Enumerations | |
| enum | MateRRRotation { MATE_RR_ROTATION_0 = (1 << 0) , MATE_RR_ROTATION_90 = (1 << 1) , MATE_RR_ROTATION_180 = (1 << 2) , MATE_RR_ROTATION_270 = (1 << 3) , MATE_RR_REFLECT_X = (1 << 4) , MATE_RR_REFLECT_Y = (1 << 5) } |
| enum | MateRRError { MATE_RR_ERROR_UNKNOWN , MATE_RR_ERROR_NO_RANDR_EXTENSION , MATE_RR_ERROR_RANDR_ERROR , MATE_RR_ERROR_BOUNDS_ERROR , MATE_RR_ERROR_CRTC_ASSIGNMENT , MATE_RR_ERROR_NO_MATCHING_CONFIG } |
Functions | |
| GQuark | mate_rr_error_quark (void) |
| GType | mate_rr_screen_get_type (void) |
| GType | mate_rr_output_get_type (void) |
| GType | mate_rr_crtc_get_type (void) |
| GType | mate_rr_mode_get_type (void) |
| MateRRScreen * | mate_rr_screen_new (GdkScreen *screen, GError **error) |
| mate_rr_screen_new: @screen: the #GdkScreen on which to operate @error: will be set if XRandR is not supported | |
| MateRROutput ** | mate_rr_screen_list_outputs (MateRRScreen *screen) |
| mate_rr_screen_list_outputs: | |
| MateRRCrtc ** | mate_rr_screen_list_crtcs (MateRRScreen *screen) |
| mate_rr_screen_list_crtcs: | |
| MateRRMode ** | mate_rr_screen_list_modes (MateRRScreen *screen) |
| mate_rr_screen_list_modes: | |
| MateRRMode ** | mate_rr_screen_list_clone_modes (MateRRScreen *screen) |
| mate_rr_screen_list_clone_modes: | |
| void | mate_rr_screen_set_size (MateRRScreen *screen, int width, int height, int mm_width, int mm_height) |
| MateRRCrtc * | mate_rr_screen_get_crtc_by_id (MateRRScreen *screen, guint32 id) |
| mate_rr_screen_get_crtc_by_id: | |
| gboolean | mate_rr_screen_refresh (MateRRScreen *screen, GError **error) |
| mate_rr_screen_refresh: @screen: a MateRRScreen @error: location to store error, or NULL | |
| MateRROutput * | mate_rr_screen_get_output_by_id (MateRRScreen *screen, guint32 id) |
| mate_rr_screen_get_output_by_id: | |
| MateRROutput * | mate_rr_screen_get_output_by_name (MateRRScreen *screen, const char *name) |
| void | mate_rr_screen_get_ranges (MateRRScreen *screen, int *min_width, int *max_width, int *min_height, int *max_height) |
| mate_rr_screen_get_ranges: @screen: a MateRRScreen @min_width: (out): the minimum width @max_width: (out): the maximum width @min_height: (out): the minimum height @max_height: (out): the maximum height | |
| void | mate_rr_screen_get_timestamps (MateRRScreen *screen, guint32 *change_timestamp_ret, guint32 *config_timestamp_ret) |
| mate_rr_screen_get_timestamps: @screen: a MateRRScreen @change_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last changed @config_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last obtained | |
| void | mate_rr_screen_set_primary_output (MateRRScreen *screen, MateRROutput *output) |
| guint32 | mate_rr_output_get_id (MateRROutput *output) |
| const char * | mate_rr_output_get_name (MateRROutput *output) |
| gboolean | mate_rr_output_is_connected (MateRROutput *output) |
| int | mate_rr_output_get_size_inches (MateRROutput *output) |
| int | mate_rr_output_get_width_mm (MateRROutput *outout) |
| int | mate_rr_output_get_height_mm (MateRROutput *output) |
| const guint8 * | mate_rr_output_get_edid_data (MateRROutput *output) |
| MateRRCrtc ** | mate_rr_output_get_possible_crtcs (MateRROutput *output) |
| mate_rr_output_get_possible_crtcs: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none): | |
| MateRRMode * | mate_rr_output_get_current_mode (MateRROutput *output) |
| mate_rr_output_get_current_mode: @output: a MateRROutput Returns: (transfer none): the current mode of this output | |
| MateRRCrtc * | mate_rr_output_get_crtc (MateRROutput *output) |
| mate_rr_output_get_crtc: @output: a MateRROutput Returns: (transfer none): | |
| const char * | mate_rr_output_get_connector_type (MateRROutput *output) |
| gboolean | mate_rr_output_is_laptop (MateRROutput *output) |
| gboolean | mate_rr_output_get_hotplug_mode_update (MateRROutput *output) |
| mate_rr_output_get_hotplug_mode_update: @output: a MateRROutput | |
| void | mate_rr_output_get_position (MateRROutput *output, int *x, int *y) |
| mate_rr_output_get_position: @output: a MateRROutput @x: (out) (allow-none): @y: (out) (allow-none): | |
| gboolean | mate_rr_output_can_clone (MateRROutput *output, MateRROutput *clone) |
| MateRRMode ** | mate_rr_output_list_modes (MateRROutput *output) |
| mate_rr_output_list_modes: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none): | |
| MateRRMode * | mate_rr_output_get_preferred_mode (MateRROutput *output) |
| mate_rr_output_get_preferred_mode: @output: a MateRROutput Returns: (transfer none): | |
| gboolean | mate_rr_output_supports_mode (MateRROutput *output, MateRRMode *mode) |
| gboolean | mate_rr_output_get_is_primary (MateRROutput *output) |
| guint32 | mate_rr_mode_get_id (MateRRMode *mode) |
| guint | mate_rr_mode_get_width (MateRRMode *mode) |
| guint | mate_rr_mode_get_height (MateRRMode *mode) |
| int | mate_rr_mode_get_freq (MateRRMode *mode) |
| guint32 | mate_rr_crtc_get_id (MateRRCrtc *crtc) |
| gboolean | mate_rr_crtc_set_config (MateRRCrtc *crtc, int x, int y, MateRRMode *mode, MateRRRotation rotation, MateRROutput **outputs, int n_outputs, GError **error) |
| gboolean | mate_rr_crtc_set_config_with_time (MateRRCrtc *crtc, guint32 timestamp, int x, int y, MateRRMode *mode, MateRRRotation rotation, MateRROutput **outputs, int n_outputs, GError **error) |
| gboolean | mate_rr_crtc_can_drive_output (MateRRCrtc *crtc, MateRROutput *output) |
| MateRRMode * | mate_rr_crtc_get_current_mode (MateRRCrtc *crtc) |
| mate_rr_crtc_get_current_mode: @crtc: a MateRRCrtc Returns: (transfer none): the current mode of this crtc | |
| void | mate_rr_crtc_get_position (MateRRCrtc *crtc, int *x, int *y) |
| mate_rr_crtc_get_position: @crtc: a MateRRCrtc @x: (out) (allow-none): @y: (out) (allow-none): | |
| MateRRRotation | mate_rr_crtc_get_current_rotation (MateRRCrtc *crtc) |
| MateRRRotation | mate_rr_crtc_get_rotations (MateRRCrtc *crtc) |
| gboolean | mate_rr_crtc_supports_rotation (MateRRCrtc *crtc, MateRRRotation rotation) |
| gboolean | mate_rr_crtc_get_gamma (MateRRCrtc *crtc, int *size, unsigned short **red, unsigned short **green, unsigned short **blue) |
| mate_rr_crtc_get_gamma: @crtc: a MateRRCrtc @size: @red: (out): the minimum width @green: (out): the maximum width @blue: (out): the minimum height | |
| void | mate_rr_crtc_set_gamma (MateRRCrtc *crtc, int size, unsigned short *red, unsigned short *green, unsigned short *blue) |
| #define MATE_IS_RR_SCREEN | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_SCREEN)) |
| #define MATE_IS_RR_SCREEN_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_SCREEN)) |
| #define MATE_RR_CONNECTOR_TYPE_PANEL "Panel" /* This is a laptop's built-in LCD */ |
| #define MATE_RR_ERROR (mate_rr_error_quark ()) |
| #define MATE_RR_SCREEN | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_SCREEN, MateRRScreen)) |
| #define MATE_RR_SCREEN_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_SCREEN, MateRRScreenClass)) |
| #define MATE_RR_SCREEN_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_SCREEN, MateRRScreenClass)) |
| #define MATE_TYPE_RR_CRTC (mate_rr_crtc_get_type()) |
| #define MATE_TYPE_RR_MODE (mate_rr_mode_get_type()) |
| #define MATE_TYPE_RR_OUTPUT (mate_rr_output_get_type()) |
| #define MATE_TYPE_RR_SCREEN (mate_rr_screen_get_type()) |
| typedef struct MateRRCrtc MateRRCrtc |
| typedef struct MateRRMode MateRRMode |
| typedef struct MateRROutput MateRROutput |
| typedef struct MateRRScreenPrivate MateRRScreenPrivate |
| enum MateRRError |
| enum MateRRRotation |
| gboolean mate_rr_crtc_can_drive_output | ( | MateRRCrtc * | crtc, |
| MateRROutput * | output | ||
| ) |
References MateRRCrtc::possible_outputs.
Referenced by crtc_assignment_assign().
| MateRRMode * mate_rr_crtc_get_current_mode | ( | MateRRCrtc * | crtc | ) |
mate_rr_crtc_get_current_mode: @crtc: a MateRRCrtc Returns: (transfer none): the current mode of this crtc
References MateRRCrtc::current_mode.
Referenced by crtc_assignment_apply(), mate_rr_config_load_current(), and mate_rr_output_get_current_mode().
| MateRRRotation mate_rr_crtc_get_current_rotation | ( | MateRRCrtc * | crtc | ) |
References MateRRCrtc::current_rotation.
Referenced by crtc_is_rotated(), and mate_rr_config_load_current().
| gboolean mate_rr_crtc_get_gamma | ( | MateRRCrtc * | crtc, |
| int * | size, | ||
| unsigned short ** | red, | ||
| unsigned short ** | green, | ||
| unsigned short ** | blue | ||
| ) |
mate_rr_crtc_get_gamma: @crtc: a MateRRCrtc @size: @red: (out): the minimum width @green: (out): the maximum width @blue: (out): the minimum height
Returns: TRUE for success
References DISPLAY, MateRRCrtc::gamma_size, and MateRRCrtc::id.
| guint32 mate_rr_crtc_get_id | ( | MateRRCrtc * | crtc | ) |
References MateRRCrtc::id.
Referenced by crtc_assignment_assign(), and real_assign_crtcs().
| void mate_rr_crtc_get_position | ( | MateRRCrtc * | crtc, |
| int * | x, | ||
| int * | y | ||
| ) |
mate_rr_crtc_get_position: @crtc: a MateRRCrtc @x: (out) (allow-none): @y: (out) (allow-none):
References MateRRCrtc::x, and MateRRCrtc::y.
Referenced by crtc_assignment_apply(), mate_rr_config_load_current(), and mate_rr_output_get_position().
| MateRRRotation mate_rr_crtc_get_rotations | ( | MateRRCrtc * | crtc | ) |
References MateRRCrtc::rotations.
| GType mate_rr_crtc_get_type | ( | void | ) |
| gboolean mate_rr_crtc_set_config | ( | MateRRCrtc * | crtc, |
| int | x, | ||
| int | y, | ||
| MateRRMode * | mode, | ||
| MateRRRotation | rotation, | ||
| MateRROutput ** | outputs, | ||
| int | n_outputs, | ||
| GError ** | error | ||
| ) |
| gboolean mate_rr_crtc_set_config_with_time | ( | MateRRCrtc * | crtc, |
| guint32 | timestamp, | ||
| int | x, | ||
| int | y, | ||
| MateRRMode * | mode, | ||
| MateRRRotation | rotation, | ||
| MateRROutput ** | outputs, | ||
| int | n_outputs, | ||
| GError ** | error | ||
| ) |
References DISPLAY, MateRRMode::height, MateRRCrtc::id, MateRRMode::id, MateRRCrtc::info, MATE_RR_ERROR, MATE_RR_ERROR_BOUNDS_ERROR, MATE_RR_ERROR_RANDR_ERROR, ScreenInfo::max_height, ScreenInfo::max_width, MateRRMode::width, and xrotation_from_rotation().
Referenced by configure_crtc(), crtc_assignment_apply(), and mate_rr_crtc_set_config().
| void mate_rr_crtc_set_gamma | ( | MateRRCrtc * | crtc, |
| int | size, | ||
| unsigned short * | red, | ||
| unsigned short * | green, | ||
| unsigned short * | blue | ||
| ) |
References DISPLAY, MateRRCrtc::gamma_size, and MateRRCrtc::id.
| gboolean mate_rr_crtc_supports_rotation | ( | MateRRCrtc * | crtc, |
| MateRRRotation | rotation | ||
| ) |
References MateRRCrtc::rotations.
Referenced by crtc_assignment_assign().
| GQuark mate_rr_error_quark | ( | void | ) |
| int mate_rr_mode_get_freq | ( | MateRRMode * | mode | ) |
References MateRRMode::freq.
Referenced by crtc_assignment_assign(), mate_rr_config_load_current(), and real_assign_crtcs().
| guint mate_rr_mode_get_height | ( | MateRRMode * | mode | ) |
References MateRRMode::height.
Referenced by crtc_assignment_apply(), crtc_assignment_assign(), get_required_virtual_size(), has_similar_mode(), mate_rr_config_load_current(), and real_assign_crtcs().
| guint32 mate_rr_mode_get_id | ( | MateRRMode * | mode | ) |
References MateRRMode::id.
Referenced by crtc_assignment_assign().
| GType mate_rr_mode_get_type | ( | void | ) |
| guint mate_rr_mode_get_width | ( | MateRRMode * | mode | ) |
References MateRRMode::width.
Referenced by crtc_assignment_apply(), crtc_assignment_assign(), get_required_virtual_size(), has_similar_mode(), mate_rr_config_load_current(), and real_assign_crtcs().
| gboolean mate_rr_output_can_clone | ( | MateRROutput * | output, |
| MateRROutput * | clone | ||
| ) |
References MateRROutput::clones.
Referenced by can_clone().
| const char * mate_rr_output_get_connector_type | ( | MateRROutput * | output | ) |
References MateRROutput::connector_type.
| MateRRCrtc * mate_rr_output_get_crtc | ( | MateRROutput * | output | ) |
mate_rr_output_get_crtc: @output: a MateRROutput Returns: (transfer none):
References MateRROutput::current_crtc.
Referenced by mate_rr_config_load_current(), mate_rr_output_get_current_mode(), and mate_rr_output_get_position().
| MateRRMode * mate_rr_output_get_current_mode | ( | MateRROutput * | output | ) |
mate_rr_output_get_current_mode: @output: a MateRROutput Returns: (transfer none): the current mode of this output
References mate_rr_crtc_get_current_mode(), and mate_rr_output_get_crtc().
| const guint8 * mate_rr_output_get_edid_data | ( | MateRROutput * | output | ) |
References MateRROutput::edid_data.
Referenced by mate_rr_config_load_current().
| int mate_rr_output_get_height_mm | ( | MateRROutput * | output | ) |
References MateRROutput::height_mm.
| gboolean mate_rr_output_get_hotplug_mode_update | ( | MateRROutput * | output | ) |
mate_rr_output_get_hotplug_mode_update: @output: a MateRROutput
Returns whether the output has the hotplug_mode_update property, which indicates that the display should apply a new preferred mode on hotplug events to handle dynamic guest resizing in virtual machines.
Returns: TRUE if the output has hotplug_mode_update
References MateRROutput::hotplug_mode_update.
| guint32 mate_rr_output_get_id | ( | MateRROutput * | output | ) |
References MateRROutput::id.
| gboolean mate_rr_output_get_is_primary | ( | MateRROutput * | output | ) |
References MateRROutput::id, and MateRROutput::info.
Referenced by mate_rr_config_load_current().
| const char * mate_rr_output_get_name | ( | MateRROutput * | output | ) |
References MateRROutput::name.
Referenced by crtc_assignment_assign(), and mate_rr_config_load_current().
| void mate_rr_output_get_position | ( | MateRROutput * | output, |
| int * | x, | ||
| int * | y | ||
| ) |
mate_rr_output_get_position: @output: a MateRROutput @x: (out) (allow-none): @y: (out) (allow-none):
References mate_rr_crtc_get_position(), and mate_rr_output_get_crtc().
| MateRRCrtc ** mate_rr_output_get_possible_crtcs | ( | MateRROutput * | output | ) |
mate_rr_output_get_possible_crtcs: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none):
References MateRROutput::possible_crtcs.
| MateRRMode * mate_rr_output_get_preferred_mode | ( | MateRROutput * | output | ) |
mate_rr_output_get_preferred_mode: @output: a MateRROutput Returns: (transfer none):
References MateRROutput::modes, and MateRROutput::n_preferred.
Referenced by mate_rr_config_load_current().
| int mate_rr_output_get_size_inches | ( | MateRROutput * | output | ) |
| GType mate_rr_output_get_type | ( | void | ) |
| int mate_rr_output_get_width_mm | ( | MateRROutput * | outout | ) |
References MateRROutput::width_mm.
| gboolean mate_rr_output_is_connected | ( | MateRROutput * | output | ) |
References MateRROutput::connected.
Referenced by mate_rr_config_load_current().
| gboolean mate_rr_output_is_laptop | ( | MateRROutput * | output | ) |
References _mate_rr_output_name_is_laptop(), MateRROutput::connected, MateRROutput::connector_type, MATE_RR_CONNECTOR_TYPE_PANEL, and MateRROutput::name.
Referenced by mate_rr_config_load_current().
| MateRRMode ** mate_rr_output_list_modes | ( | MateRROutput * | output | ) |
mate_rr_output_list_modes: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none):
References MateRROutput::modes.
Referenced by has_similar_mode(), mate_rr_config_load_current(), and real_assign_crtcs().
| gboolean mate_rr_output_supports_mode | ( | MateRROutput * | output, |
| MateRRMode * | mode | ||
| ) |
References MateRROutput::modes.
Referenced by crtc_assignment_assign().
| MateRRCrtc * mate_rr_screen_get_crtc_by_id | ( | MateRRScreen * | screen, |
| guint32 | id | ||
| ) |
mate_rr_screen_get_crtc_by_id:
Returns: (transfer none): the CRTC identified by @id
References ScreenInfo::crtcs, MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.
| MateRROutput * mate_rr_screen_get_output_by_id | ( | MateRRScreen * | screen, |
| guint32 | id | ||
| ) |
mate_rr_screen_get_output_by_id:
Returns: (transfer none): the output identified by @id
References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::outputs, and MateRRScreen::priv.
| MateRROutput * mate_rr_screen_get_output_by_name | ( | MateRRScreen * | screen, |
| const char * | name | ||
| ) |
References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, MateRROutput::name, ScreenInfo::outputs, and MateRRScreen::priv.
Referenced by real_assign_crtcs().
| void mate_rr_screen_get_ranges | ( | MateRRScreen * | screen, |
| int * | min_width, | ||
| int * | max_width, | ||
| int * | min_height, | ||
| int * | max_height | ||
| ) |
mate_rr_screen_get_ranges: @screen: a MateRRScreen @min_width: (out): the minimum width @max_width: (out): the maximum width @min_height: (out): the minimum height @max_height: (out): the maximum height
Get the ranges of the screen
References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::max_height, ScreenInfo::max_width, ScreenInfo::min_height, ScreenInfo::min_width, and MateRRScreen::priv.
Referenced by crtc_assignment_apply(), crtc_assignment_new(), and fill_out_screen_info().
| void mate_rr_screen_get_timestamps | ( | MateRRScreen * | screen, |
| guint32 * | change_timestamp_ret, | ||
| guint32 * | config_timestamp_ret | ||
| ) |
mate_rr_screen_get_timestamps: @screen: a MateRRScreen @change_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last changed @config_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last obtained
Queries the two timestamps that the X RANDR extension maintains. The X server will prevent change requests for stale configurations, those whose timestamp is not equal to that of the latest request for configuration. The X server will also prevent change requests that have an older timestamp to the latest change request.
References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.
| GType mate_rr_screen_get_type | ( | void | ) |
| MateRRMode ** mate_rr_screen_list_clone_modes | ( | MateRRScreen * | screen | ) |
mate_rr_screen_list_clone_modes:
List available XRandR clone modes
Returns: (array zero-terminated=1) (transfer none):
References ScreenInfo::clone_modes, MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.
| MateRRCrtc ** mate_rr_screen_list_crtcs | ( | MateRRScreen * | screen | ) |
mate_rr_screen_list_crtcs:
List all CRTCs
Returns: (array zero-terminated=1) (transfer none):
References ScreenInfo::crtcs, MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.
Referenced by crtc_assignment_apply(), and real_assign_crtcs().
| MateRRMode ** mate_rr_screen_list_modes | ( | MateRRScreen * | screen | ) |
mate_rr_screen_list_modes:
List available XRandR modes
Returns: (array zero-terminated=1) (transfer none):
References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::modes, and MateRRScreen::priv.
| MateRROutput ** mate_rr_screen_list_outputs | ( | MateRRScreen * | screen | ) |
mate_rr_screen_list_outputs:
List all outputs
Returns: (array zero-terminated=1) (transfer none):
References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::outputs, and MateRRScreen::priv.
Referenced by mate_rr_config_load_current().
| MateRRScreen * mate_rr_screen_new | ( | GdkScreen * | screen, |
| GError ** | error | ||
| ) |
mate_rr_screen_new: @screen: the #GdkScreen on which to operate @error: will be set if XRandR is not supported
Creates a new MateRRScreen instance
Returns: a new MateRRScreen instance or NULL if screen could not be created, for instance if the driver does not support Xrandr 1.2
References _mate_desktop_init_i18n(), and MATE_TYPE_RR_SCREEN.
| gboolean mate_rr_screen_refresh | ( | MateRRScreen * | screen, |
| GError ** | error | ||
| ) |
mate_rr_screen_refresh: @screen: a MateRRScreen @error: location to store error, or NULL
Refreshes the screen configuration, and calls the screen's callback if it exists and if the screen's configuration changed.
Return value: TRUE if the screen's configuration changed; otherwise, the function returns FALSE and a NULL error if the configuration didn't change, or FALSE and a non-NULL error if there was an error while refreshing the configuration.
References force_timestamp_update(), MateRRScreenPrivate::gdk_screen, MateRRScreen::priv, and screen_update().
Referenced by mate_rr_config_apply_from_filename_with_time().
| void mate_rr_screen_set_primary_output | ( | MateRRScreen * | screen, |
| MateRROutput * | output | ||
| ) |
References MateRROutput::id, MATE_IS_RR_SCREEN, MateRRScreen::priv, MateRRScreenPrivate::xdisplay, and MateRRScreenPrivate::xroot.
Referenced by crtc_assignment_apply().
| void mate_rr_screen_set_size | ( | MateRRScreen * | screen, |
| int | width, | ||
| int | height, | ||
| int | mm_width, | ||
| int | mm_height | ||
| ) |
References MATE_IS_RR_SCREEN, MateRRScreen::priv, MateRRScreenPrivate::xdisplay, and MateRRScreenPrivate::xroot.
Referenced by crtc_assignment_apply().