CScreensaver.Screen¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
composited_changed_id |
r |
||
gdk_screen |
r |
||
low_res |
r |
||
monitor_infos |
r |
||
monitors_changed_id |
r |
||
n_monitor_infos |
r |
||
obj |
r |
||
primary_monitor_index |
r |
||
rect |
r |
||
screen_size_changed_id |
r |
||
smallest_height |
r |
||
smallest_width |
r |
Class Details¶
- class CScreensaver.Screen(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_global_scale()¶
- Return type:
Retrieves the global scale factor from the
Gdk.Screen
.
- classmethod get_net_wm_name(xwindow)¶
- Parameters:
xwindow (
int
) – The Window (XID) to get the property from.- Returns:
The value of NET_WM_NAME.
- Return type:
Gets the NET_WM_NAME of xwindow
- classmethod reset_screensaver()¶
Resets the screensaver idle timer. If called when the screensaver is active it will stop it.
- classmethod set_net_wm_name(window, name)¶
- Parameters:
window (
Gdk.Window
) – TheGdk.Window
to set the property onname (
str
) – The name.
Sets _NET_WM_NAME to name on window
- get_low_res_mode()¶
- Returns:
Whether or not to use low res mode.
- Return type:
Gets whether or not one of our monitors falls below the low res threshold (1200 wide). This lets us display certain things at smaller sizes to prevent truncating of images, etc.
- get_monitor_geometry(monitor)¶
- Parameters:
monitor (
int
) – the monitor number- Returns:
location to store the monitor geometry
- Return type:
geometry:
Gdk.Rectangle
Stores the location and size of the indicated monitor in geometry.
- get_mouse_monitor()¶
- Returns:
the monitor index for the pointer
- Return type:
Gets the index of the monitor that the mouse pointer currently occupies.
- get_n_monitors()¶
- Returns:
the number of monitors
- Return type:
Gets the number of monitors that are joined together to form self.
- get_primary_monitor()¶
- Returns:
a monitor index
- Return type:
Gets the index of the primary monitor on this self.
- get_screen_geometry()¶
- Returns:
location to store the screen geometry
- Return type:
geometry:
Gdk.Rectangle
Stores the location and size of the screen in geometry.
- get_smallest_monitor_sizes()¶
- Returns:
- width:
width of the smallest monitor
- height:
height of the smallest monitor
- Return type:
Gets whether or not one of our monitors falls below the low res threshold (1200 wide). This lets us display certain things at smaller sizes to prevent truncating of images, etc.
- place_pointer_in_primary_monitor()¶
Signal Details¶
- CScreensaver.Screen.signals.composited_changed(screen)¶
- Signal Name:
composited-changed
- Flags:
- Parameters:
screen (
CScreensaver.Screen
) – The object which received the signal
- CScreensaver.Screen.signals.monitors_changed(screen)¶
- Signal Name:
monitors-changed
- Flags:
- Parameters:
screen (
CScreensaver.Screen
) – The object which received the signal
- CScreensaver.Screen.signals.size_changed(screen)¶
- Signal Name:
size-changed
- Flags:
- Parameters:
screen (
CScreensaver.Screen
) – The object which received the signal