GnomeRR.OutputInfo

g GObject.Object GObject.Object GnomeRR.OutputInfo GnomeRR.OutputInfo GObject.Object->GnomeRR.OutputInfo

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)

Class Details

class GnomeRR.OutputInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GnomeRR.OutputInfoClass

The representation of an output, which can be used for querying and setting display state.

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

Retrieves the output name.

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:

GnomeRR.Rotation

get_serial()
Return type:

str

get_underscanning()
Return type:

bool

get_vendor()
Returns:

the output’s vendor string

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 (GnomeRR.Rotation) –

set_underscanning(underscanning)
Parameters:

underscanning (bool) –

supports_rotation(rotation)
Parameters:

rotation (GnomeRR.Rotation) –

Return type:

bool