mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
mate-rr-labeler.h File Reference
View source
#include "mate-rr-config.h"
Include dependency graph for mate-rr-labeler.h:
This graph shows which files directly or indirectly include this file:

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.
 

Macro Definition Documentation

◆ MATE_IS_RR_LABELER

#define MATE_IS_RR_LABELER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_LABELER))

◆ MATE_IS_RR_LABELER_CLASS

#define MATE_IS_RR_LABELER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_LABELER))

◆ MATE_RR_LABELER

#define MATE_RR_LABELER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_LABELER, MateRRLabeler))

◆ MATE_RR_LABELER_CLASS

#define MATE_RR_LABELER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_LABELER, MateRRLabelerClass))

◆ MATE_RR_LABELER_GET_CLASS

#define MATE_RR_LABELER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_LABELER, MateRRLabelerClass))

◆ MATE_TYPE_RR_LABELER

#define MATE_TYPE_RR_LABELER   (mate_rr_labeler_get_type ())

Typedef Documentation

◆ MateRRLabeler

typedef struct _MateRRLabeler MateRRLabeler

◆ MateRRLabelerClass

◆ MateRRLabelerPrivate

Function Documentation

◆ mate_rr_labeler_get_rgba_for_output()

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.

Here is the call graph for this function:

◆ mate_rr_labeler_get_type()

GType mate_rr_labeler_get_type ( void  )

◆ mate_rr_labeler_hide()

void mate_rr_labeler_hide ( MateRRLabeler *  labeler)

◆ mate_rr_labeler_new()

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.