#include <workspace_wrapper.h>
|
enum | ClientAreaOption {
PlacementArea
, MovementArea
, MaximizeArea
, MaximizeFullArea
,
FullScreenArea
, WorkArea
, FullArea
, ScreenArea
} |
|
enum | ElectricBorder {
ElectricTop
, ElectricTopRight
, ElectricRight
, ElectricBottomRight
,
ElectricBottom
, ElectricBottomLeft
, ElectricLeft
, ElectricTopLeft
,
ELECTRIC_COUNT
, ElectricNone
} |
|
Definition at line 28 of file workspace_wrapper.h.
◆ ClientAreaOption
Enumerator |
---|
PlacementArea | geometry where a window will be initially placed after being mapped
window movement snapping area? ignore struts
|
MovementArea | geometry to which a window will be maximized
|
MaximizeArea | like MaximizeArea, but ignore struts - used e.g. for topmenu
|
MaximizeFullArea | area for fullscreen windows
|
FullScreenArea | whole workarea (all screens together)
|
WorkArea | whole area (all screens together), ignore struts
|
FullArea | one whole screen, ignore struts
|
ScreenArea | |
Definition at line 135 of file workspace_wrapper.h.
◆ ElectricBorder
Enumerator |
---|
ElectricTop | |
ElectricTopRight | |
ElectricRight | |
ElectricBottomRight | |
ElectricBottom | |
ElectricBottomLeft | |
ElectricLeft | |
ElectricTopLeft | |
ELECTRIC_COUNT | |
ElectricNone | |
Definition at line 154 of file workspace_wrapper.h.
◆ WorkspaceWrapper()
KWin::WorkspaceWrapper::WorkspaceWrapper |
( |
QObject * | parent = nullptr | ) |
|
|
explicitprotected |
◆ activeScreen()
Output * KWin::WorkspaceWrapper::activeScreen |
( |
| ) |
const |
◆ activeWindow()
Window * KWin::WorkspaceWrapper::activeWindow |
( |
| ) |
const |
◆ activitiesChanged
void KWin::WorkspaceWrapper::activitiesChanged |
( |
const QString & | id | ) |
|
|
signal |
Signal emitted whenever the list of activities changed.
- Parameters
-
◆ activityAdded
void KWin::WorkspaceWrapper::activityAdded |
( |
const QString & | id | ) |
|
|
signal |
This signal is emitted when a new activity is added
- Parameters
-
◆ activityList()
QStringList KWin::WorkspaceWrapper::activityList |
( |
| ) |
const |
◆ activityRemoved
void KWin::WorkspaceWrapper::activityRemoved |
( |
const QString & | id | ) |
|
|
signal |
This signal is emitted when the activity is removed
- Parameters
-
id | id of the removed activity |
◆ clientArea() [1/3]
◆ clientArea() [2/3]
Returns the geometry a Client can use with the specified option. This method should be preferred over other methods providing screen sizes as the various options take constraints such as struts set on panels into account. This method is also multi screen aware, but there are also options to get full areas.
- Parameters
-
option | The type of area which should be considered |
screen | The screen for which the area should be considered |
desktop | The desktop for which the area should be considered, in general there should not be a difference |
- Returns
- The specified screen geometry
Definition at line 248 of file workspace_wrapper.cpp.
◆ clientArea() [3/3]
Overloaded method for convenience.
- Parameters
-
client | The Client for which the area should be retrieved |
- Returns
- The specified screen geometry
Definition at line 240 of file workspace_wrapper.cpp.
◆ createDesktop()
void KWin::WorkspaceWrapper::createDesktop |
( |
int | position, |
|
|
const QString & | name ) const |
Create a new virtual desktop at the requested position.
- Parameters
-
position | The position of the desktop. It should be in range [0, count]. |
name | The name for the new desktop, if empty the default name will be used. |
Definition at line 253 of file workspace_wrapper.cpp.
◆ currentActivity()
QString KWin::WorkspaceWrapper::currentActivity |
( |
| ) |
const |
◆ currentActivityChanged
void KWin::WorkspaceWrapper::currentActivityChanged |
( |
const QString & | id | ) |
|
|
signal |
Signal emitted whenever the current activity changed.
- Parameters
-
◆ currentDesktop()
◆ currentDesktopChanged
This signal is emitted when the current virtual desktop changes.
◆ cursorPos()
QPoint KWin::WorkspaceWrapper::cursorPos |
( |
| ) |
const |
◆ cursorPosChanged
void KWin::WorkspaceWrapper::cursorPosChanged |
( |
| ) |
|
|
signal |
This signal is emitted when the cursor position changes.
- See also
- cursorPos()
◆ desktopGridHeight()
int KWin::WorkspaceWrapper::desktopGridHeight |
( |
| ) |
const |
◆ desktopGridSize()
QSize KWin::WorkspaceWrapper::desktopGridSize |
( |
| ) |
const |
◆ desktopGridWidth()
int KWin::WorkspaceWrapper::desktopGridWidth |
( |
| ) |
const |
◆ desktopLayoutChanged
void KWin::WorkspaceWrapper::desktopLayoutChanged |
( |
| ) |
|
|
signal |
Signal emitted whenever the layout of virtual desktops changed. That is desktopGrid(Size/Width/Height) will have new values.
- Since
- 4.11
◆ desktops()
◆ desktopsChanged
void KWin::WorkspaceWrapper::desktopsChanged |
( |
| ) |
|
|
signal |
This signal is emitted when a virtual desktop is added or removed.
◆ getClient()
Window * KWin::WorkspaceWrapper::getClient |
( |
qulonglong | windowId | ) |
|
◆ hideOutline
void KWin::WorkspaceWrapper::hideOutline |
( |
| ) |
|
|
slot |
◆ isEffectActive()
bool KWin::WorkspaceWrapper::isEffectActive |
( |
const QString & | pluginId | ) |
const |
Checks if a specific effect is currently active.
- Parameters
-
pluginId | The plugin Id of the effect to check. |
- Returns
true
if the effect is loaded and currently active, false
otherwise.
- Since
- 6.0
Definition at line 331 of file workspace_wrapper.cpp.
◆ raiseWindow()
void KWin::WorkspaceWrapper::raiseWindow |
( |
KWin::Window * | window | ) |
|
◆ removeDesktop()
◆ screenAt()
Output * KWin::WorkspaceWrapper::screenAt |
( |
const QPointF & | pos | ) |
const |
◆ screens()
QList< Output * > KWin::WorkspaceWrapper::screens |
( |
| ) |
const |
◆ screensChanged
void KWin::WorkspaceWrapper::screensChanged |
( |
| ) |
|
|
signal |
Emitted when the output list changes, e.g. an output is connected or removed.
◆ sendClientToScreen
◆ setActiveWindow()
void KWin::WorkspaceWrapper::setActiveWindow |
( |
KWin::Window * | window | ) |
|
◆ setCurrentActivity()
void KWin::WorkspaceWrapper::setCurrentActivity |
( |
const QString & | activity | ) |
|
◆ setCurrentDesktop()
void KWin::WorkspaceWrapper::setCurrentDesktop |
( |
VirtualDesktop * | desktop | ) |
|
◆ showOutline [1/2]
void KWin::WorkspaceWrapper::showOutline |
( |
const QRect & | geometry | ) |
|
|
slot |
Shows an outline at the specified geometry
. If an outline is already shown the outline is moved to the new position. Use hideOutline to remove the outline again.
Definition at line 268 of file workspace_wrapper.cpp.
◆ showOutline [2/2]
void KWin::WorkspaceWrapper::showOutline |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
|
slot |
◆ slotActivateAttentionWindow
void KWin::WorkspaceWrapper::slotActivateAttentionWindow |
( |
| ) |
|
|
slot |
◆ slotIncreaseWindowOpacity
void KWin::WorkspaceWrapper::slotIncreaseWindowOpacity |
( |
| ) |
|
|
slot |
◆ slotLowerWindowOpacity
void KWin::WorkspaceWrapper::slotLowerWindowOpacity |
( |
| ) |
|
|
slot |
◆ slotSwitchDesktopDown
void KWin::WorkspaceWrapper::slotSwitchDesktopDown |
( |
| ) |
|
|
slot |
◆ slotSwitchDesktopLeft
void KWin::WorkspaceWrapper::slotSwitchDesktopLeft |
( |
| ) |
|
|
slot |
◆ slotSwitchDesktopNext
void KWin::WorkspaceWrapper::slotSwitchDesktopNext |
( |
| ) |
|
|
slot |
◆ slotSwitchDesktopPrevious
void KWin::WorkspaceWrapper::slotSwitchDesktopPrevious |
( |
| ) |
|
|
slot |
◆ slotSwitchDesktopRight
void KWin::WorkspaceWrapper::slotSwitchDesktopRight |
( |
| ) |
|
|
slot |
◆ slotSwitchDesktopUp
void KWin::WorkspaceWrapper::slotSwitchDesktopUp |
( |
| ) |
|
|
slot |
◆ slotSwitchToAboveScreen
void KWin::WorkspaceWrapper::slotSwitchToAboveScreen |
( |
| ) |
|
|
slot |
◆ slotSwitchToBelowScreen
void KWin::WorkspaceWrapper::slotSwitchToBelowScreen |
( |
| ) |
|
|
slot |
◆ slotSwitchToLeftScreen
void KWin::WorkspaceWrapper::slotSwitchToLeftScreen |
( |
| ) |
|
|
slot |
◆ slotSwitchToNextScreen
void KWin::WorkspaceWrapper::slotSwitchToNextScreen |
( |
| ) |
|
|
slot |
◆ slotSwitchToPrevScreen
void KWin::WorkspaceWrapper::slotSwitchToPrevScreen |
( |
| ) |
|
|
slot |
◆ slotSwitchToRightScreen
void KWin::WorkspaceWrapper::slotSwitchToRightScreen |
( |
| ) |
|
|
slot |
◆ slotSwitchWindowDown
void KWin::WorkspaceWrapper::slotSwitchWindowDown |
( |
| ) |
|
|
slot |
◆ slotSwitchWindowLeft
void KWin::WorkspaceWrapper::slotSwitchWindowLeft |
( |
| ) |
|
|
slot |
◆ slotSwitchWindowRight
void KWin::WorkspaceWrapper::slotSwitchWindowRight |
( |
| ) |
|
|
slot |
◆ slotSwitchWindowUp
void KWin::WorkspaceWrapper::slotSwitchWindowUp |
( |
| ) |
|
|
slot |
◆ slotToggleShowDesktop
void KWin::WorkspaceWrapper::slotToggleShowDesktop |
( |
| ) |
|
|
slot |
◆ slotWindowAbove
void KWin::WorkspaceWrapper::slotWindowAbove |
( |
| ) |
|
|
slot |
◆ slotWindowBelow
void KWin::WorkspaceWrapper::slotWindowBelow |
( |
| ) |
|
|
slot |
◆ slotWindowClose
void KWin::WorkspaceWrapper::slotWindowClose |
( |
| ) |
|
|
slot |
◆ slotWindowExpandHorizontal
void KWin::WorkspaceWrapper::slotWindowExpandHorizontal |
( |
| ) |
|
|
slot |
◆ slotWindowExpandVertical
void KWin::WorkspaceWrapper::slotWindowExpandVertical |
( |
| ) |
|
|
slot |
◆ slotWindowFullScreen
void KWin::WorkspaceWrapper::slotWindowFullScreen |
( |
| ) |
|
|
slot |
◆ slotWindowLower
void KWin::WorkspaceWrapper::slotWindowLower |
( |
| ) |
|
|
slot |
◆ slotWindowMaximize
void KWin::WorkspaceWrapper::slotWindowMaximize |
( |
| ) |
|
|
slot |
◆ slotWindowMaximizeHorizontal
void KWin::WorkspaceWrapper::slotWindowMaximizeHorizontal |
( |
| ) |
|
|
slot |
◆ slotWindowMaximizeVertical
void KWin::WorkspaceWrapper::slotWindowMaximizeVertical |
( |
| ) |
|
|
slot |
◆ slotWindowMinimize
void KWin::WorkspaceWrapper::slotWindowMinimize |
( |
| ) |
|
|
slot |
◆ slotWindowMove
void KWin::WorkspaceWrapper::slotWindowMove |
( |
| ) |
|
|
slot |
◆ slotWindowMoveDown
void KWin::WorkspaceWrapper::slotWindowMoveDown |
( |
| ) |
|
|
slot |
◆ slotWindowMoveLeft
void KWin::WorkspaceWrapper::slotWindowMoveLeft |
( |
| ) |
|
|
slot |
◆ slotWindowMoveRight
void KWin::WorkspaceWrapper::slotWindowMoveRight |
( |
| ) |
|
|
slot |
◆ slotWindowMoveUp
void KWin::WorkspaceWrapper::slotWindowMoveUp |
( |
| ) |
|
|
slot |
◆ slotWindowNoBorder
void KWin::WorkspaceWrapper::slotWindowNoBorder |
( |
| ) |
|
|
slot |
◆ slotWindowOnAllDesktops
void KWin::WorkspaceWrapper::slotWindowOnAllDesktops |
( |
| ) |
|
|
slot |
◆ slotWindowOperations
void KWin::WorkspaceWrapper::slotWindowOperations |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileBottom
void KWin::WorkspaceWrapper::slotWindowQuickTileBottom |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileBottomLeft
void KWin::WorkspaceWrapper::slotWindowQuickTileBottomLeft |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileBottomRight
void KWin::WorkspaceWrapper::slotWindowQuickTileBottomRight |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileLeft
void KWin::WorkspaceWrapper::slotWindowQuickTileLeft |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileRight
void KWin::WorkspaceWrapper::slotWindowQuickTileRight |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileTop
void KWin::WorkspaceWrapper::slotWindowQuickTileTop |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileTopLeft
void KWin::WorkspaceWrapper::slotWindowQuickTileTopLeft |
( |
| ) |
|
|
slot |
◆ slotWindowQuickTileTopRight
void KWin::WorkspaceWrapper::slotWindowQuickTileTopRight |
( |
| ) |
|
|
slot |
◆ slotWindowRaise
void KWin::WorkspaceWrapper::slotWindowRaise |
( |
| ) |
|
|
slot |
◆ slotWindowRaiseOrLower
void KWin::WorkspaceWrapper::slotWindowRaiseOrLower |
( |
| ) |
|
|
slot |
◆ slotWindowResize
void KWin::WorkspaceWrapper::slotWindowResize |
( |
| ) |
|
|
slot |
◆ slotWindowShade
void KWin::WorkspaceWrapper::slotWindowShade |
( |
| ) |
|
|
slot |
◆ slotWindowShrinkHorizontal
void KWin::WorkspaceWrapper::slotWindowShrinkHorizontal |
( |
| ) |
|
|
slot |
◆ slotWindowShrinkVertical
void KWin::WorkspaceWrapper::slotWindowShrinkVertical |
( |
| ) |
|
|
slot |
◆ slotWindowToAboveScreen
void KWin::WorkspaceWrapper::slotWindowToAboveScreen |
( |
| ) |
|
|
slot |
◆ slotWindowToBelowScreen
void KWin::WorkspaceWrapper::slotWindowToBelowScreen |
( |
| ) |
|
|
slot |
◆ slotWindowToDesktopDown
void KWin::WorkspaceWrapper::slotWindowToDesktopDown |
( |
| ) |
|
|
slot |
◆ slotWindowToDesktopLeft
void KWin::WorkspaceWrapper::slotWindowToDesktopLeft |
( |
| ) |
|
|
slot |
◆ slotWindowToDesktopRight
void KWin::WorkspaceWrapper::slotWindowToDesktopRight |
( |
| ) |
|
|
slot |
◆ slotWindowToDesktopUp
void KWin::WorkspaceWrapper::slotWindowToDesktopUp |
( |
| ) |
|
|
slot |
◆ slotWindowToLeftScreen
void KWin::WorkspaceWrapper::slotWindowToLeftScreen |
( |
| ) |
|
|
slot |
◆ slotWindowToNextDesktop
void KWin::WorkspaceWrapper::slotWindowToNextDesktop |
( |
| ) |
|
|
slot |
◆ slotWindowToNextScreen
void KWin::WorkspaceWrapper::slotWindowToNextScreen |
( |
| ) |
|
|
slot |
◆ slotWindowToPreviousDesktop
void KWin::WorkspaceWrapper::slotWindowToPreviousDesktop |
( |
| ) |
|
|
slot |
◆ slotWindowToPrevScreen
void KWin::WorkspaceWrapper::slotWindowToPrevScreen |
( |
| ) |
|
|
slot |
◆ slotWindowToRightScreen
void KWin::WorkspaceWrapper::slotWindowToRightScreen |
( |
| ) |
|
|
slot |
◆ stackingOrder()
QList< KWin::Window * > KWin::WorkspaceWrapper::stackingOrder |
( |
| ) |
const |
List of Clients currently managed by KWin, orderd by their visibility (later ones cover earlier ones).
Definition at line 283 of file workspace_wrapper.cpp.
◆ supportInformation()
QString KWin::WorkspaceWrapper::supportInformation |
( |
| ) |
const |
◆ tilingForScreen() [1/2]
KWin::TileManager * KWin::WorkspaceWrapper::tilingForScreen |
( |
const QString & | screenName | ) |
const |
◆ tilingForScreen() [2/2]
◆ virtualScreenGeometry()
QRect KWin::WorkspaceWrapper::virtualScreenGeometry |
( |
| ) |
const |
◆ virtualScreenGeometryChanged
void KWin::WorkspaceWrapper::virtualScreenGeometryChanged |
( |
| ) |
|
|
signal |
◆ virtualScreenSize()
QSize KWin::WorkspaceWrapper::virtualScreenSize |
( |
| ) |
const |
◆ virtualScreenSizeChanged
void KWin::WorkspaceWrapper::virtualScreenSizeChanged |
( |
| ) |
|
|
signal |
◆ windowActivated
void KWin::WorkspaceWrapper::windowActivated |
( |
KWin::Window * | window | ) |
|
|
signal |
◆ windowAdded
void KWin::WorkspaceWrapper::windowAdded |
( |
KWin::Window * | window | ) |
|
|
signal |
◆ windowAt()
QList< KWin::Window * > KWin::WorkspaceWrapper::windowAt |
( |
const QPointF & | pos, |
|
|
int | count = 1 ) const |
Finds up to count windows at a particular location, prioritizing the topmost one first. A negative count returns all matching clients.
- Parameters
-
pos | The location to look for |
count | The number of clients to return |
- Returns
- A list of Client objects
Definition at line 302 of file workspace_wrapper.cpp.
◆ windowRemoved
void KWin::WorkspaceWrapper::windowRemoved |
( |
KWin::Window * | window | ) |
|
|
signal |
◆ workspaceHeight()
int KWin::WorkspaceWrapper::workspaceHeight |
( |
| ) |
const |
◆ workspaceSize()
QSize KWin::WorkspaceWrapper::workspaceSize |
( |
| ) |
const |
◆ workspaceWidth()
int KWin::WorkspaceWrapper::workspaceWidth |
( |
| ) |
const |
◆ activeScreen
◆ activeWindow
◆ activities
QStringList KWin::WorkspaceWrapper::activities |
|
read |
◆ currentActivity
QString KWin::WorkspaceWrapper::currentActivity |
|
readwrite |
◆ currentDesktop
◆ cursorPos
QPoint KWin::WorkspaceWrapper::cursorPos |
|
read |
◆ desktopGridHeight
int KWin::WorkspaceWrapper::desktopGridHeight |
|
read |
◆ desktopGridSize
QSize KWin::WorkspaceWrapper::desktopGridSize |
|
read |
◆ desktopGridWidth
int KWin::WorkspaceWrapper::desktopGridWidth |
|
read |
◆ desktops
◆ screens
◆ stackingOrder
List of Clients currently managed by KWin, orderd by their visibility (later ones cover earlier ones).
Definition at line 61 of file workspace_wrapper.h.
◆ virtualScreenGeometry
QRect KWin::WorkspaceWrapper::virtualScreenGeometry |
|
read |
◆ virtualScreenSize
QSize KWin::WorkspaceWrapper::virtualScreenSize |
|
read |
◆ workspaceHeight
int KWin::WorkspaceWrapper::workspaceHeight |
|
read |
◆ workspaceSize
QSize KWin::WorkspaceWrapper::workspaceSize |
|
read |
◆ workspaceWidth
int KWin::WorkspaceWrapper::workspaceWidth |
|
read |
The documentation for this class was generated from the following files: