CinnamonDesktop.RRConfig

g CinnamonDesktop.RRConfig CinnamonDesktop.RRConfig GObject.Object GObject.Object GObject.Object->CinnamonDesktop.RRConfig

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

apply_from_filename_with_time (screen, filename, timestamp)

class

get_backup_filename ()

class

get_intended_filename ()

class

get_legacy_filename ()

class

new_current (screen)

class

new_stored (screen)

applicable (screen)

apply_with_time (screen, timestamp)

ensure_primary ()

equal (config2)

get_auto_scale ()

get_base_scale ()

get_clone ()

get_outputs ()

load_current ()

load_filename (filename)

match (config2)

sanitize ()

save ()

set_auto_scale (auto_scale)

set_base_scale (base_scale)

set_clone (clone)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

screen

CinnamonDesktop.RRScreen

w/co

The CinnamonDesktop.RRScreen this config applies to

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class CinnamonDesktop.RRConfig(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

CinnamonDesktop.RRConfigClass

classmethod apply_from_filename_with_time(screen, filename, timestamp)
Parameters:
Raises:

GLib.Error

Return type:

bool

classmethod get_backup_filename()
Return type:

str

classmethod get_intended_filename()
Return type:

str

classmethod get_legacy_filename()
Return type:

str

classmethod new_current(screen)
Parameters:

screen (CinnamonDesktop.RRScreen) –

Raises:

GLib.Error

Return type:

CinnamonDesktop.RRConfig

classmethod new_stored(screen)
Parameters:

screen (CinnamonDesktop.RRScreen) –

Raises:

GLib.Error

Return type:

CinnamonDesktop.RRConfig

applicable(screen)
Parameters:

screen (CinnamonDesktop.RRScreen) –

Raises:

GLib.Error

Return type:

bool

apply_with_time(screen, timestamp)
Parameters:
Raises:

GLib.Error

Return type:

bool

ensure_primary()
Return type:

bool

equal(config2)
Parameters:

config2 (CinnamonDesktop.RRConfig) –

Return type:

bool

get_auto_scale()
Return type:

bool

get_base_scale()
Return type:

int

get_clone()
Returns:

whether at least two outputs are at (0, 0) offset and they have the same width/height. Those outputs are of course connected and on (i.e. they have a CRTC assigned).

Return type:

bool

get_outputs()
Returns:

the output configuration for this CinnamonDesktop.RRConfig

Return type:

[CinnamonDesktop.RROutputInfo]

load_current()
Raises:

GLib.Error

Return type:

bool

load_filename(filename)
Parameters:

filename (str) –

Raises:

GLib.Error

Return type:

bool

match(config2)
Parameters:

config2 (CinnamonDesktop.RRConfig) –

Return type:

bool

sanitize()
save()
Raises:

GLib.Error

Return type:

bool

set_auto_scale(auto_scale)
Parameters:

auto_scale (bool) –

set_base_scale(base_scale)
Parameters:

base_scale (int) –

set_clone(clone)
Parameters:

clone (bool) –

Property Details

CinnamonDesktop.RRConfig.props.screen
Name:

screen

Type:

CinnamonDesktop.RRScreen

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The CinnamonDesktop.RRScreen this config applies to