KWin
|
#include <xdgshellwindow.h>
Public Member Functions | |
XdgToplevelWindow (XdgToplevelInterface *shellSurface) | |
~XdgToplevelWindow () override | |
XdgToplevelInterface * | shellSurface () const |
MaximizeMode | maximizeMode () const override |
MaximizeMode | requestedMaximizeMode () const override |
QSizeF | minSize () const override |
QSizeF | maxSize () const override |
bool | isFullScreen () const override |
bool | isRequestedFullScreen () const override |
bool | isMovableAcrossScreens () const override |
bool | isMovable () const override |
bool | isResizable () const override |
bool | isCloseable () const override |
bool | isFullScreenable () const override |
bool | isMaximizable () const override |
bool | isMinimizable () const override |
bool | isPlaceable () const override |
bool | isTransient () const override |
bool | userCanSetNoBorder () const override |
bool | noBorder () const override |
void | setNoBorder (bool set) override |
void | invalidateDecoration () override |
QString | preferredColorScheme () const override |
bool | supportsWindowRules () const override |
void | applyWindowRules () override |
bool | takeFocus () override |
bool | wantsInput () const override |
bool | dockWantsInput () const override |
void | setFullScreen (bool set) override |
void | closeWindow () override |
void | maximize (MaximizeMode mode) override |
void | installAppMenu (AppMenuInterface *appMenu) |
void | installServerDecoration (ServerSideDecorationInterface *decoration) |
void | installPalette (ServerSideDecorationPaletteInterface *palette) |
void | installXdgDecoration (XdgToplevelDecorationV1Interface *decoration) |
![]() | |
XdgSurfaceWindow (XdgSurfaceInterface *shellSurface) | |
~XdgSurfaceWindow () override | |
NET::WindowType | windowType () const override |
QRectF | frameRectToBufferRect (const QRectF &rect) const override |
void | destroyWindow () override |
void | installPlasmaShellSurface (PlasmaShellSurfaceInterface *shellSurface) |
![]() | |
WaylandWindow (SurfaceInterface *surface) | |
QString | captionNormal () const override |
QString | captionSuffix () const override |
pid_t | pid () const override |
bool | isClient () const override |
bool | isLockScreen () const override |
bool | isLocalhost () const override |
Window * | findModal (bool allow_itself=false) override |
QRectF | resizeWithChecks (const QRectF &geometry, const QSizeF &size) override |
void | killWindow () override |
QString | windowRole () const override |
void | setCaption (const QString &caption) |
![]() | |
~Window () override | |
void | ref () |
void | unref () |
QRectF | moveResizeGeometry () const |
Output * | moveResizeOutput () const |
void | setMoveResizeOutput (Output *output) |
QRectF | bufferGeometry () const |
QRectF | frameGeometry () const |
QRectF | clientGeometry () const |
QMargins | frameMargins () const |
QSizeF | size () const |
QPointF | pos () const |
QRectF | rect () const |
qreal | x () const |
qreal | y () const |
qreal | width () const |
qreal | height () const |
bool | isOnOutput (Output *output) const |
bool | isOnActiveOutput () const |
Output * | output () const |
void | setOutput (Output *output) |
QSizeF | clientSize () const |
QRectF | visibleGeometry () const |
QPointF | mapToFrame (const QPointF &point) const |
QPointF | mapToLocal (const QPointF &point) const |
QPointF | mapFromLocal (const QPointF &point) const |
virtual QPointF | framePosToClientPos (const QPointF &point) const |
virtual QPointF | clientPosToFramePos (const QPointF &point) const |
virtual QSizeF | frameSizeToClientSize (const QSizeF &size) const |
virtual QSizeF | clientSizeToFrameSize (const QSizeF &size) const |
QRectF | frameRectToClientRect (const QRectF &rect) const |
QRectF | clientRectToFrameRect (const QRectF &rect) const |
virtual QSizeF | constrainClientSize (const QSizeF &size, SizeMode mode=SizeModeAny) const |
QSizeF | constrainFrameSize (const QSizeF &size, SizeMode mode=SizeModeAny) const |
void | move (const QPointF &point) |
void | resize (const QSizeF &size) |
void | moveResize (const QRectF &rect) |
void | growHorizontal () |
void | shrinkHorizontal () |
void | growVertical () |
void | shrinkVertical () |
void | keepInArea (QRectF area, bool partial=false) |
QRectF | keepInArea (QRectF geometry, QRectF area, bool partial=false) |
bool | hasNETSupport () const |
bool | isDesktop () const |
bool | isDock () const |
bool | isToolbar () const |
bool | isMenu () const |
bool | isNormalWindow () const |
bool | isDialog () const |
bool | isSplash () const |
bool | isUtility () const |
bool | isDropdownMenu () const |
bool | isPopupMenu () const |
bool | isTooltip () const |
bool | isNotification () const |
bool | isCriticalNotification () const |
bool | isAppletPopup () const |
bool | isOnScreenDisplay () const |
bool | isComboBox () const |
bool | isDNDIcon () const |
virtual bool | isInputMethod () const |
virtual bool | isOutline () const |
virtual bool | isInternal () const |
virtual bool | isPopupWindow () const |
bool | isDeleted () const |
virtual bool | isUnmanaged () const |
bool | isLockScreenOverlay () const |
void | setLockScreenOverlay (bool allowed) |
QStringList | desktopIds () const |
QList< VirtualDesktop * > | desktops () const |
void | setDesktops (QList< VirtualDesktop * > desktops) |
void | enterDesktop (VirtualDesktop *desktop) |
void | leaveDesktop (VirtualDesktop *desktop) |
bool | isOnDesktop (VirtualDesktop *desktop) const |
bool | isOnCurrentDesktop () const |
bool | isOnAllDesktops () const |
void | setOnAllDesktops (bool set) |
virtual QStringList | activities () const |
bool | isOnActivity (const QString &activity) const |
bool | isOnCurrentActivity () const |
bool | isOnAllActivities () const |
void | setOnActivity (const QString &activity, bool enable) |
void | setOnActivities (const QStringList &newActivitiesList) |
void | setOnAllActivities (bool all) |
virtual void | updateActivities (bool includeTransients) |
void | blockActivityUpdates (bool b=true) |
virtual void | checkActivities () |
QString | resourceName () const |
QString | resourceClass () const |
QString | wmClientMachine (bool use_localhost) const |
ClientMachine * | clientMachine () const |
bool | readyForPainting () const |
void | setOpacity (qreal opacity) |
qreal | opacity () const |
virtual bool | setupCompositing () |
virtual void | finishCompositing () |
EffectWindow * | effectWindow () |
const EffectWindow * | effectWindow () const |
SurfaceItem * | surfaceItem () const |
WindowItem * | windowItem () const |
void | elevate (bool elevate) |
Shadow * | shadow () const |
void | updateShadow () |
bool | wantsShadowToBeRendered () const |
bool | skipsCloseAnimation () const |
void | setSkipCloseAnimation (bool set) |
SurfaceInterface * | surface () const |
void | setSurface (SurfaceInterface *surface) |
QMatrix4x4 | inputTransformation () const |
virtual bool | hitTest (const QPointF &point) const |
virtual bool | hasPopupGrab () const |
virtual void | popupDone () |
QUuid | internalId () const |
int | stackingOrder () const |
void | setStackingOrder (int order) |
bool | skipSwitcher () const |
void | setSkipSwitcher (bool set) |
bool | skipTaskbar () const |
void | setSkipTaskbar (bool set) |
void | setOriginalSkipTaskbar (bool set) |
bool | originalSkipTaskbar () const |
bool | skipPager () const |
void | setSkipPager (bool set) |
const QIcon & | icon () const |
bool | isActive () const |
void | setActive (bool) |
bool | keepAbove () const |
void | setKeepAbove (bool) |
bool | keepBelow () const |
void | setKeepBelow (bool) |
void | demandAttention (bool set=true) |
bool | isDemandingAttention () const |
void | cancelAutoRaise () |
virtual void | updateMouseGrab () |
QString | caption () const |
bool | isShown () const |
bool | isHidden () const |
void | setHidden (bool hidden) |
bool | isHiddenByShowDesktop () const |
void | setHiddenByShowDesktop (bool hidden) |
virtual bool | hasTransientPlacementHint () const |
virtual QRectF | transientPlacement () const |
const Window * | transientFor () const |
Window * | transientFor () |
void | setTransientFor (Window *transientFor) |
virtual bool | hasTransient (const Window *transient, bool indirect) const |
const QList< Window * > & | transients () const |
virtual void | addTransient (Window *transient) |
virtual void | removeTransient (Window *transient) |
void | removeTransientFromList (Window *cl) |
virtual QList< Window * > | mainWindows () const |
QList< Window * > | allMainWindows () const |
bool | isSpecialWindow () const |
void | sendToOutput (Output *output) |
const QKeySequence & | shortcut () const |
void | setShortcut (const QString &cut) |
virtual QRectF | iconGeometry () const |
void | setMinimized (bool set) |
bool | isMinimized () const |
bool | isSuspended () const |
void | setSuspended (bool suspended) |
QRectF | fullscreenGeometryRestore () const |
bool | wantsAdaptiveSync () const |
QRectF | geometryRestore () const |
Q_INVOKABLE void | setMaximize (bool vertically, bool horizontally) |
QPalette | palette () |
const Decoration::DecorationPalette * | decorationPalette () |
bool | isShade () const |
ShadeMode | shadeMode () const |
void | setShade (bool set) |
void | setShade (ShadeMode mode) |
void | toggleShade () |
void | cancelShadeHoverTimer () |
virtual bool | isShadeable () const |
const WindowRules * | rules () const |
void | removeRule (Rules *r) |
void | setupWindowRules () |
void | finishWindowRules () |
void | evaluateWindowRules () |
virtual void | updateWindowRules (Rules::Types selection) |
bool | wantsTabFocus () const |
void | checkWorkspacePosition (QRectF oldGeometry=QRectF(), const VirtualDesktop *oldDesktop=nullptr) |
virtual xcb_timestamp_t | userTime () const |
void | keyPressEvent (uint key_code) |
virtual void | pointerEnterEvent (const QPointF &globalPos) |
virtual void | pointerLeaveEvent () |
void | packTo (qreal left, qreal top) |
Tile * | tile () const |
void | setTile (Tile *tile) |
void | setQuickTileMode (QuickTileMode mode, bool keyboard=false) |
QuickTileMode | quickTileMode () const |
Layer | layer () const |
void | updateLayer () |
bool | isInteractiveMove () const |
bool | isInteractiveResize () const |
CursorShape | cursor () const |
uint32_t | interactiveMoveResizeCount () const |
void | updateInteractiveMoveResize (const QPointF ¤tGlobalCursor) |
void | endInteractiveMoveResize () |
virtual StrutRect | strutRect (StrutArea area) const |
StrutRects | strutRects () const |
virtual bool | hasStrut () const |
void | setModal (bool modal) |
bool | isModal () const |
Options::MouseCommand | getMouseCommand (Qt::MouseButton button, bool *handled) const |
Options::MouseCommand | getWheelCommand (Qt::Orientation orientation, bool *handled) const |
bool | performMouseCommand (Options::MouseCommand, const QPointF &globalPos) |
Qt::Edge | titlebarPosition () const |
bool | titlebarPositionUnderMouse () const |
KDecoration2::Decoration * | decoration () |
const KDecoration2::Decoration * | decoration () const |
bool | isDecorated () const |
Decoration::DecoratedClientImpl * | decoratedClient () const |
void | setDecoratedClient (Decoration::DecoratedClientImpl *client) |
bool | decorationHasAlpha () const |
void | triggerDecorationRepaint () |
void | layoutDecorationRects (QRectF &left, QRectF &top, QRectF &right, QRectF &bottom) const |
void | processDecorationMove (const QPointF &localPos, const QPointF &globalPos) |
bool | processDecorationButtonPress (QMouseEvent *event, bool ignoreMenu=false) |
void | processDecorationButtonRelease (QMouseEvent *event) |
virtual void | checkNoBorder () |
virtual bool | providesContextHelp () const |
virtual void | showContextHelp () |
QRectF | virtualKeyboardGeometry () const |
virtual void | setVirtualKeyboardGeometry (const QRectF &geo) |
virtual void | showOnScreenEdge () |
QString | desktopFileName () const |
bool | hasApplicationMenu () const |
bool | applicationMenuActive () const |
void | setApplicationMenuActive (bool applicationMenuActive) |
QString | applicationMenuServiceName () const |
QString | applicationMenuObjectPath () const |
void | showApplicationMenu (int actionId) |
QString | colorScheme () const |
void | setColorScheme (const QString &colorScheme) |
bool | unresponsive () const |
virtual bool | groupTransient () const |
virtual const Group * | group () const |
virtual Group * | group () |
PlasmaWindowInterface * | windowManagementInterface () const |
void | setLastUsageSerial (quint32 serial) |
quint32 | lastUsageSerial () const |
void | refOffscreenRendering () |
void | unrefOffscreenRendering () |
Definition at line 108 of file xdgshellwindow.h.
|
explicit |
Definition at line 404 of file xdgshellwindow.cpp.
|
override |
Definition at line 457 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Whether the window accepts focus. The difference to wantsInput is that the implementation should not check rules and return what the window effectively supports.
Implements KWin::Window.
Definition at line 882 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 648 of file xdgshellwindow.cpp.
|
overridevirtual |
Implements KWin::Window.
Definition at line 654 of file xdgshellwindow.cpp.
|
overridevirtual |
Whether a dock window wants input.
By default KWin doesn't pass focus to a dock window unless a force activate request is provided.
This method allows to have dock windows take focus also through flags set on the window.
The default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 872 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 839 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Called during handling a resize. Implementing subclasses can use this method to perform windowing system specific syncing.
Default implementation does nothing.
Reimplemented from KWin::Window.
Definition at line 727 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Called from minimize and unminimize once the minimized value got updated, but before the changed signal is emitted.
Default implementation does nothig.
Reimplemented from KWin::Window.
Definition at line 717 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Called from setActive once the active value got updated, but before the changed signal is emitted.
Default implementation does nothing.
Reimplemented from KWin::WaylandWindow.
Definition at line 732 of file xdgshellwindow.cpp.
|
protected |
Definition at line 745 of file xdgshellwindow.cpp.
|
protected |
Definition at line 756 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 798 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 847 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Called from startMoveResize.
Implementing classes should return false
if starting move resize should get aborted. In that case startMoveResize will also return false
.
Base implementation returns true
.
Reimplemented from KWin::Window.
Definition at line 829 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::XdgSurfaceWindow.
Definition at line 709 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::XdgSurfaceWindow.
Definition at line 464 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::XdgSurfaceWindow.
Definition at line 694 of file xdgshellwindow.cpp.
void KWin::XdgToplevelWindow::installAppMenu | ( | AppMenuInterface * | appMenu | ) |
Definition at line 1285 of file xdgshellwindow.cpp.
void KWin::XdgToplevelWindow::installPalette | ( | ServerSideDecorationPaletteInterface * | palette | ) |
Definition at line 1421 of file xdgshellwindow.cpp.
void KWin::XdgToplevelWindow::installServerDecoration | ( | ServerSideDecorationInterface * | decoration | ) |
Definition at line 1405 of file xdgshellwindow.cpp.
void KWin::XdgToplevelWindow::installXdgDecoration | ( | XdgToplevelDecorationV1Interface * | decoration | ) |
Definition at line 1392 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 637 of file xdgshellwindow.cpp.
|
overridevirtual |
Implements KWin::Window.
Definition at line 568 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns true
if the Window is currently being shown in full screen mode; otherwise false
.
A window in full screen mode occupies the entire screen with no window frame around it.
Default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 517 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns true
if the Window can be shown in full screen mode; otherwise false
.
Default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 573 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns true
if the Window can be maximized; otherwise false
.
Default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 581 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns true
if the Window can be minimized; otherwise false
.
Default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 592 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns whether the window is moveable or has a fixed position.
Implements KWin::Window.
Definition at line 527 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns whether the window can be moved to another screen.
Implements KWin::Window.
Definition at line 541 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 603 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 522 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns whether the window is resizable or has a fixed size.
Implements KWin::Window.
Definition at line 552 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 611 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1466 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns the currently applied maximize mode.
Default implementation returns MaximizeRestore.
Reimplemented from KWin::Window.
Definition at line 494 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns the maximum client size, not the maximum frame size.
Reimplemented from KWin::Window.
Definition at line 510 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns the minimum client size, not the minimum frame size.
Reimplemented from KWin::Window.
Definition at line 504 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 621 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1277 of file xdgshellwindow.cpp.
|
overridevirtual |
Returns the last requested maximize mode.
On X11, this method always matches maximizeMode(). On Wayland, it is asynchronous.
Default implementation matches maximizeMode().
Reimplemented from KWin::Window.
Definition at line 499 of file xdgshellwindow.cpp.
|
overrideprotectedvirtual |
Implements KWin::XdgSurfaceWindow.
Definition at line 662 of file xdgshellwindow.cpp.
|
overridevirtual |
Asks the Window to enter or leave full screen mode.
Default implementation does nothing.
set | true if the Window has to be shown in full screen mode, otherwise false |
Reimplemented from KWin::Window.
Definition at line 1432 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 626 of file xdgshellwindow.cpp.
XdgToplevelInterface * KWin::XdgToplevelWindow::shellSurface | ( | ) | const |
Definition at line 489 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 643 of file xdgshellwindow.cpp.
|
overridevirtual |
Implements KWin::Window.
Definition at line 858 of file xdgshellwindow.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 616 of file xdgshellwindow.cpp.
|
overridevirtual |
Implements KWin::Window.
Definition at line 867 of file xdgshellwindow.cpp.