GnomeDesktop.RROutputInfo

g GObject.Object GObject.Object GnomeDesktop.RROutputInfo GnomeDesktop.RROutputInfo GObject.Object->GnomeDesktop.RROutputInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_aspect_ratio ()

get_display_name ()

get_geometry ()

get_name ()

get_preferred_height ()

get_preferred_width ()

get_primary ()

get_product ()

get_refresh_rate ()

get_rotation ()

get_serial ()

get_underscanning ()

get_vendor ()

is_active ()

is_connected ()

is_primary_tile ()

set_active (active)

set_geometry (x, y, width, height)

set_primary (primary)

set_refresh_rate (rate)

set_rotation (rotation)

set_underscanning (underscanning)

supports_rotation (rotation)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GnomeDesktop.RROutputInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GnomeDesktop.RROutputInfoClass

get_aspect_ratio()
Return type:

float

get_display_name()
Returns:

the display name of this output

Return type:

str

get_geometry()
Return type:

(x: int, y: int, width: int, height: int)

Get the geometry for the monitor connected to the specified output. If the monitor is a tiled monitor, it returns the geometry for the complete monitor.

get_name()
Returns:

the output name

Return type:

str

get_preferred_height()
Return type:

int

get_preferred_width()
Return type:

int

get_primary()
Return type:

bool

get_product()
Return type:

str

get_refresh_rate()
Return type:

int

get_rotation()
Return type:

GnomeDesktop.RRRotation

get_serial()
Return type:

str

get_underscanning()
Return type:

bool

get_vendor()
Return type:

str

is_active()
Returns:

whether there is a CRTC assigned to this output (i.e. a signal is being sent to it)

Return type:

bool

is_connected()
Returns:

whether the output is physically connected to a monitor

Return type:

bool

is_primary_tile()
Returns:

True if the specified output is connected to the primary tile of a monitor or to an untiled monitor, False if the output is connected to a secondary tile.

Return type:

bool

set_active(active)
Parameters:

active (bool) –

set_geometry(x, y, width, height)
Parameters:
  • x (int) – x offset for monitor

  • y (int) – y offset for monitor

  • width (int) – monitor width

  • height (int) – monitor height

Set the geometry for the monitor connected to the specified output. If the monitor is a tiled monitor, it sets the geometry for the complete monitor.

set_primary(primary)
Parameters:

primary (bool) –

set_refresh_rate(rate)
Parameters:

rate (int) –

set_rotation(rotation)
Parameters:

rotation (GnomeDesktop.RRRotation) –

set_underscanning(underscanning)
Parameters:

underscanning (bool) –

supports_rotation(rotation)
Parameters:

rotation (GnomeDesktop.RRRotation) –

Return type:

bool