CinnamonDesktop.RRScreen¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The GDK |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted when a display device is connected to a port, or a port is hotplugged with an active output. |
|
This signal is emitted when a display device is disconnected from a port, or a port output is hot-unplugged. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class CinnamonDesktop.RRScreen(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(screen)¶
- Parameters:
screen (
Gdk.Screen
) – theGdk.Screen
on which to operate- Raises:
- Returns:
a unique
CinnamonDesktop.RRScreen
instance, specific to the screen, orNone
if this could not be created, for instance if the driver does not support Xrandr 1.2. EachGdk.Screen
thus has a single instance ofCinnamonDesktop.RRScreen
.- Return type:
Creates a unique
CinnamonDesktop.RRScreen
instance for the specified screen.
- calculate_supported_scales(width, height, n_supported_scales)¶
- create_clone_modes()¶
- Return type:
- get_dpms_mode(mode)¶
- Parameters:
mode (
CinnamonDesktop.RRDpmsMode
) –- Raises:
- Return type:
- get_output_by_name(name)¶
- Parameters:
name (
str
) –- Returns:
the output identified by name
- Return type:
- get_ranges()¶
- Returns:
- min_width:
the minimum width
- max_width:
the maximum width
- min_height:
the minimum height
- max_height:
the maximum height
- Return type:
(min_width:
int
, max_width:int
, min_height:int
, max_height:int
)
Get the ranges of the screen
- get_timestamps()¶
- Returns:
- change_timestamp_ret:
Location in which to store the timestamp at which the RANDR configuration was last changed
- config_timestamp_ret:
Location in which to store the timestamp at which the RANDR configuration was last obtained
- Return type:
Queries the two timestamps that the X RANDR extension maintains. The X server will prevent change requests for stale configurations, those whose timestamp is not equal to that of the latest request for configuration. The X server will also prevent change requests that have an older timestamp to the latest change request.
- list_clone_modes()¶
- Return type:
List available XRandR clone modes
- list_crtcs()¶
- Return type:
List all CRTCs
- list_modes()¶
- Return type:
List available XRandR modes
- list_outputs()¶
- Return type:
List all outputs
- refresh()¶
- Raises:
- Returns:
True
if the screen’s configuration changed; otherwise, the function returnsFalse
and aNone
error if the configuration didn’t change, orFalse
and a non-None
error if there was an error while refreshing the configuration.- Return type:
Refreshes the screen configuration, and calls the screen’s callback if it exists and if the screen’s configuration changed.
- set_dpms_mode(mode)¶
- Parameters:
mode (
CinnamonDesktop.RRDpmsMode
) –- Raises:
- Return type:
This method also disables the DPMS timeouts.
- set_primary_output(output)¶
- Parameters:
output (
CinnamonDesktop.RROutput
) –
Signal Details¶
- CinnamonDesktop.RRScreen.signals.changed(r_r_screen)¶
- Signal Name:
changed
- Flags:
- Parameters:
r_r_screen (
CinnamonDesktop.RRScreen
) – The object which received the signal
- CinnamonDesktop.RRScreen.signals.output_connected(r_r_screen, output)¶
- Signal Name:
output-connected
- Flags:
- Parameters:
r_r_screen (
CinnamonDesktop.RRScreen
) – The object which received the signaloutput (
object
orNone
) – theCinnamonDesktop.RROutput
that was connected
This signal is emitted when a display device is connected to a port, or a port is hotplugged with an active output. The latter can happen if a laptop is docked, and the dock provides a new active output.
The output value is not a
GObject.Object
. The returned output value can only assume to be valid during the emission of the signal (i.e. within your signal handler only), as it may change later when the screen is modified due to an event from the X server, or due to another place in the application modifying the screen and the output. Therefore, deal with changes to the output right in your signal handler, instead of keeping the output reference for an async or idle function.
- CinnamonDesktop.RRScreen.signals.output_disconnected(r_r_screen, output)¶
- Signal Name:
output-disconnected
- Flags:
- Parameters:
r_r_screen (
CinnamonDesktop.RRScreen
) – The object which received the signaloutput (
object
orNone
) – theCinnamonDesktop.RROutput
that was disconnected
This signal is emitted when a display device is disconnected from a port, or a port output is hot-unplugged. The latter can happen if a laptop is undocked, and the dock provided the output.
The output value is not a
GObject.Object
. The returned output value can only assume to be valid during the emission of the signal (i.e. within your signal handler only), as it may change later when the screen is modified due to an event from the X server, or due to another place in the application modifying the screen and the output. Therefore, deal with changes to the output right in your signal handler, instead of keeping the output reference for an async or idle function.
Property Details¶
- CinnamonDesktop.RRScreen.props.gdk_screen¶
- Name:
gdk-screen
- Type:
- Default Value:
- Flags:
The GDK
xlib.Screen
represented by thisCinnamonDesktop.RRScreen