Libxfce4windowing.Screen¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
active-window |
||
r/w/co |
|||
r/w/en |
show-desktop |
||
r |
workspace-manager |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when a new window becomes the active window. |
|
Emitted when a monitor is added to screen. |
|
Emitted when a monitor is removed from screen. |
|
Emitted when one of the following has changed about the monitors attached to screen: * A monitor was added. |
|
Emitted when seat has been added to screen. |
|
Emitted when seat has been added to screen. |
|
Emitted when a window is closed on the screen. |
|
Emitted when the window manager on screen has changed. |
|
Emitted when a new window is opened on the screen. |
|
Emitted when the order of the windows as displayed on the screen has changed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libxfce4windowing.Screen(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod get_default()¶
- Returns:
an
Libxfce4windowing.Screeninstance, with a reference owned by the caller.- Return type:
Retrieves the
Libxfce4windowing.Screeninstance corresponding to the defaultGdk.Screen.
- get_active_window()¶
- Returns:
an
Libxfce4windowing.Window, orNoneif no window is active on self.- Return type:
Retrieves the window on self that is currently active.
- get_monitors()¶
- Returns:
the list of
Libxfce4windowing.Monitoron self, orNoneif there are no connected/enabled monitors. The list and its contents are owned by self.- Return type:
Retrieves the list of monitors currently attached and enabled on self.
New in version 4.19.4.
- get_primary_monitor()¶
- Returns:
self's primary
Libxfce4windowing.Monitor, orNone.- Return type:
Returns the monitor designated as “primary”.
This function will do its best to return something other than
None. If the windowing system has no concept of a primary monitor, or if the primary monitor is unset, a likely candidate will be chosen from the list of available monitors.However, if no monitors are connected,
Nonecan still be returned.New in version 4.19.4.
- get_seats()¶
- Returns:
a list of
Libxfce4windowing.Seat. The list and its contents are owned by self.- Return type:
Returns the list of all
Libxfce4windowing.Seatinstances available on self.
- get_windows()¶
- Returns:
the list of
Libxfce4windowing.Windowon self, orNoneif there are no windows. The list and its contents are owned by self.- Return type:
Retrieves the list of windows currently displayed on self.
The list and its contents are owned by self.
- get_windows_stacked()¶
- Returns:
the list of
Libxfce4windowing.Windowon self, in stacking order, orNoneif there are no windows. The list and its contents are owned by self.- Return type:
Retrieves the list of windows currently displayed on self, in stacking order, with the bottom-most window first in the returned list.
- get_workspace_manager()¶
- Returns:
a
Libxfce4windowing.WorkspaceManagerinstance. This instance is a singleton and is owned by self.- Return type:
Retrieves this screen’s
Libxfce4windowing.WorkspaceManagerinstance, which can be used to inspect and interact with self's workspace groups and workspaces.
- set_show_desktop(show)¶
-
Showing the desktop minimizes the windows not minimized at the time of the query. The reverse process unminimizes those same windows, if they have not already been unminimized or destroyed. The desktop show state can be tracked via
Libxfce4windowing.Screen:show-desktop.The state of the previously active window is always restored upon unminimization, but there is no guarantee for the rest of the window stacking order on Wayland.
A request to switch to the current state is silently ignored.
Signal Details¶
- Libxfce4windowing.Screen.signals.active_window_changed(screen, window)¶
- Signal Name:
active-window-changed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalwindow (
Libxfce4windowing.Window) – the previously-active window.
Emitted when a new window becomes the active window. Often the active window will receive keyboard focus. While window is the previously-active window (if any, and may be
None), the newly-active window can be retrieved viaLibxfce4windowing.Screen.get_active_window().
- Libxfce4windowing.Screen.signals.monitor_added(screen, monitor)¶
- Signal Name:
monitor-added- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalmonitor (
Libxfce4windowing.Monitor) – the monitor that was added.
Emitted when a monitor is added to screen.
New in version 4.19.4.
- Libxfce4windowing.Screen.signals.monitor_removed(screen, monitor)¶
- Signal Name:
monitor-removed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalmonitor (
Libxfce4windowing.Monitor) – the monitor that was removed.
Emitted when a monitor is removed from screen.
New in version 4.19.4.
- Libxfce4windowing.Screen.signals.monitors_changed(screen)¶
- Signal Name:
monitors-changed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signal
Emitted when one of the following has changed about the monitors attached to screen:
A monitor was added.
A monitor was removed.
A monitor’s resolution changed (including if the scale factor changed).
A monitor was re-positioned in the global screen space.
Which monitor is primary has changed.
Note that changes such as the subpixel layout or model name will not result in the emission of this signal. Connect to the propert notify signals on
Libxfce4windowing.Monitorto be notified of changes in other aspects of the monitor.New in version 4.19.4.
- Libxfce4windowing.Screen.signals.seat_added(screen, seat)¶
- Signal Name:
seat-added- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalseat (
Libxfce4windowing.Seat) – the newLibxfce4windowing.Seatthat was added.
Emitted when seat has been added to screen.
- Libxfce4windowing.Screen.signals.seat_removed(screen, seat)¶
- Signal Name:
seat-removed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalseat (
Libxfce4windowing.Seat) – theLibxfce4windowing.Seatthat was removed.
Emitted when seat has been added to screen.
- Libxfce4windowing.Screen.signals.window_closed(screen, window)¶
- Signal Name:
window-closed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalwindow (
Libxfce4windowing.Window) – the window that has been closed.
Emitted when a window is closed on the screen.
- Libxfce4windowing.Screen.signals.window_manager_changed(screen)¶
- Signal Name:
window-manager-changed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signal
Emitted when the window manager on screen has changed.
Note that currently this signal is not emitted on Wayland.
- Libxfce4windowing.Screen.signals.window_opened(screen, window)¶
- Signal Name:
window-opened- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signalwindow (
Libxfce4windowing.Window) – the new window that was opened.
Emitted when a new window is opened on the screen.
- Libxfce4windowing.Screen.signals.window_stacking_changed(screen)¶
- Signal Name:
window-stacking-changed- Flags:
- Parameters:
screen (
Libxfce4windowing.Screen) – The object which received the signal
Emitted when the order of the windows as displayed on the screen has changed. Windows, in stacking order, can be retrieved via
Libxfce4windowing.Screen.get_windows_stacked().Note that currently this signal is not emitted on Wayland.
Property Details¶
- Libxfce4windowing.Screen.props.active_window¶
- Name:
active-window- Type:
- Default Value:
- Flags:
The currently-active window.
- Libxfce4windowing.Screen.props.gdk_screen¶
- Name:
gdk-screen- Type:
- Default Value:
- Flags:
The
Gdk.Screeninstance used to construct thisLibxfce4windowing.Screen.
- Libxfce4windowing.Screen.props.show_desktop¶
- Name:
show-desktop- Type:
- Default Value:
- Flags:
Whether or not to show the desktop.
- Libxfce4windowing.Screen.props.workspace_manager¶
- Name:
workspace-manager- Type:
- Default Value:
- Flags:
The
Libxfce4windowing.WorkspaceManagerthat manages and describes workspace groups and workspaces on this screen instance.