|
mate-desktop 1.29.2
Library with common API for various MATE modules
|
#include "mate-rr-config.h"Data Structures | |
| struct | _MateRRLabeler |
| struct | _MateRRLabelerClass |
Macros | |
| #define | MATE_TYPE_RR_LABELER (mate_rr_labeler_get_type ()) |
| #define | MATE_RR_LABELER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_LABELER, MateRRLabeler)) |
| #define | MATE_RR_LABELER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_LABELER, MateRRLabelerClass)) |
| #define | MATE_IS_RR_LABELER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_LABELER)) |
| #define | MATE_IS_RR_LABELER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_LABELER)) |
| #define | MATE_RR_LABELER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_LABELER, MateRRLabelerClass)) |
Typedefs | |
| typedef struct _MateRRLabeler | MateRRLabeler |
| typedef struct _MateRRLabelerClass | MateRRLabelerClass |
| typedef struct _MateRRLabelerPrivate | MateRRLabelerPrivate |
Functions | |
| GType | mate_rr_labeler_get_type (void) |
| MateRRLabeler * | mate_rr_labeler_new (MateRRConfig *config) |
| mate_rr_labeler_new: @config: Configuration of the screens to label | |
| void | mate_rr_labeler_hide (MateRRLabeler *labeler) |
| mate_rr_labeler_hide: @labeler: A MateRRLabeler | |
| void | mate_rr_labeler_get_rgba_for_output (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *color_out) |
| mate_rr_labeler_get_rgba_for_output: @labeler: A MateRRLabeler @output: Output device (i.e. | |
| #define MATE_IS_RR_LABELER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_LABELER)) |
| #define MATE_IS_RR_LABELER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_LABELER)) |
| #define MATE_RR_LABELER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_LABELER, MateRRLabeler)) |
| #define MATE_RR_LABELER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_LABELER, MateRRLabelerClass)) |
| #define MATE_RR_LABELER_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_LABELER, MateRRLabelerClass)) |
| #define MATE_TYPE_RR_LABELER (mate_rr_labeler_get_type ()) |
| typedef struct _MateRRLabeler MateRRLabeler |
| typedef struct _MateRRLabelerClass MateRRLabelerClass |
| typedef struct _MateRRLabelerPrivate MateRRLabelerPrivate |
| void mate_rr_labeler_get_rgba_for_output | ( | MateRRLabeler * | labeler, |
| MateRROutputInfo * | output, | ||
| GdkRGBA * | color_out | ||
| ) |
mate_rr_labeler_get_rgba_for_output: @labeler: A MateRRLabeler @output: Output device (i.e.
monitor) to query @color_out: (out): Color of selected monitor.
Get the color used for the label on a given output (monitor).
References _MateRRLabelerPrivate::config, MATE_IS_RR_LABELER, MATE_IS_RR_OUTPUT_INFO, mate_rr_config_get_outputs(), _MateRRLabelerPrivate::num_outputs, _MateRRLabelerPrivate::palette, and _MateRRLabeler::priv.
| GType mate_rr_labeler_get_type | ( | void | ) |
| void mate_rr_labeler_hide | ( | MateRRLabeler * | labeler | ) |
mate_rr_labeler_hide: @labeler: A MateRRLabeler
Hide ouput labels.
References MATE_IS_RR_LABELER, _MateRRLabelerPrivate::num_outputs, _MateRRLabeler::priv, and _MateRRLabelerPrivate::windows.
Referenced by mate_rr_labeler_finalize(), and screen_xevent_filter().
| MateRRLabeler * mate_rr_labeler_new | ( | MateRRConfig * | config | ) |
mate_rr_labeler_new: @config: Configuration of the screens to label
Create a GUI element that will display colored labels on each connected monitor. This is useful when users are required to identify which monitor is which, e.g. for for configuring multiple monitors. The labels will be shown by default, use mate_rr_labeler_hide to hide them.
Returns: A new MateRRLabeler
References MATE_IS_RR_CONFIG, and MATE_TYPE_RR_LABELER.