MateRRLabeler

MateRRLabeler

Synopsis

#include <mate-rr-labeler.h>

struct              MateRRLabeler;
MateRRLabeler *     mate_rr_labeler_new                 (MateRRConfig *config);
void                mate_rr_labeler_hide                (MateRRLabeler *labeler);
void                mate_rr_labeler_get_color_for_output
                                                        (MateRRLabeler *labeler,
                                                         MateRROutputInfo *output,
                                                         GdkColor *color_out);

Object Hierarchy

  GObject
   +----MateRRLabeler

Properties

  "config"                   MateRRConfig*         : Write / Construct Only

Description

Details

struct MateRRLabeler

struct MateRRLabeler;


mate_rr_labeler_new ()

MateRRLabeler *     mate_rr_labeler_new                 (MateRRConfig *config);

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.

config :

Configuration of the screens to label

Returns :

A new MateRRLabeler

mate_rr_labeler_hide ()

void                mate_rr_labeler_hide                (MateRRLabeler *labeler);

Hide ouput labels.

labeler :

A MateRRLabeler

mate_rr_labeler_get_color_for_output ()

void                mate_rr_labeler_get_color_for_output
                                                        (MateRRLabeler *labeler,
                                                         MateRROutputInfo *output,
                                                         GdkColor *color_out);

Get the color used for the label on a given output (monitor).

labeler :

A MateRRLabeler

output :

Output device (i.e. monitor) to query

color_out :

Color of selected monitor. [out]

Property Details

The "config" property

  "config"                   MateRRConfig*         : Write / Construct Only

RandR configuration to label.