MateRRLabeler

MateRRLabeler

Functions

Properties

MateRRConfig * config Write / Construct Only

Types and Values

struct MateRRLabeler

Object Hierarchy

    GObject
    ╰── MateRRLabeler

Includes

#include <mate-rr-labeler.h>

Description

Functions

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.

Parameters

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.

Parameters

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).

Parameters

labeler

A MateRRLabeler

 

output

Output device (i.e. monitor) to query

 

color_out

Color of selected monitor.

[out]

Types and Values

struct MateRRLabeler

struct MateRRLabeler;

Property Details

The “config” property

  “config”                   MateRRConfig *

RandR configuration to label.

Owner: MateRRLabeler

Flags: Write / Construct Only