CinnamonDesktop.RRLabeler

g CinnamonDesktop.RRLabeler CinnamonDesktop.RRLabeler GObject.Object GObject.Object GObject.Object->CinnamonDesktop.RRLabeler

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (config)

get_rgba_for_output (output)

hide ()

show ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

config

CinnamonDesktop.RRConfig

w/co

RandR configuration to label

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class CinnamonDesktop.RRLabeler(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

CinnamonDesktop.RRLabelerClass

classmethod new(config)
Parameters:

config (CinnamonDesktop.RRConfig) – Configuration of the screens to label

Returns:

A new CinnamonDesktop.RRLabeler

Return type:

CinnamonDesktop.RRLabeler

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 CinnamonDesktop.RRLabeler.hide to hide them.

get_rgba_for_output(output)
Parameters:

output (CinnamonDesktop.RROutputInfo) – Output device (i.e. monitor) to query

Returns:

Color of selected monitor.

Return type:

rgba_out: Gdk.RGBA

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

hide()

Hide ouput labels.

show()

Show the labels.

Property Details

CinnamonDesktop.RRLabeler.props.config
Name:

config

Type:

CinnamonDesktop.RRConfig

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

RandR configuration to label