File indexing completed on 2024-04-14 14:29:53

0001 /*
0002     SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef KWINDOWSYSTEM_DUMMY_P_H
0008 #define KWINDOWSYSTEM_DUMMY_P_H
0009 
0010 #include "kwindowsystem_p.h"
0011 
0012 class KWindowSystemPrivateDummy : public KWindowSystemPrivate
0013 {
0014 public:
0015     QList<WId> windows() override;
0016     QList<WId> stackingOrder() override;
0017     WId activeWindow() override;
0018     void activateWindow(WId win, long time) override;
0019     void forceActiveWindow(WId win, long time) override;
0020 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101)
0021     void demandAttention(WId win, bool set) override;
0022 #endif
0023     bool compositingActive() override;
0024     int currentDesktop() override;
0025     int numberOfDesktops() override;
0026     void setCurrentDesktop(int desktop) override;
0027     void setOnAllDesktops(WId win, bool b) override;
0028     void setOnDesktop(WId win, int desktop) override;
0029     void setOnActivities(WId win, const QStringList &activities) override;
0030 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 0)
0031     WId transientFor(WId window) override;
0032     WId groupLeader(WId window) override;
0033 #endif
0034     QPixmap icon(WId win, int width, int height, bool scale, int flags) override;
0035 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101)
0036     void setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon) override;
0037 #endif
0038     void setType(WId win, NET::WindowType windowType) override;
0039     void setState(WId win, NET::States state) override;
0040     void clearState(WId win, NET::States state) override;
0041     void minimizeWindow(WId win) override;
0042     void unminimizeWindow(WId win) override;
0043     void raiseWindow(WId win) override;
0044     void lowerWindow(WId win) override;
0045     bool icccmCompliantMappingState() override;
0046     QRect workArea(int desktop) override;
0047     QRect workArea(const QList<WId> &excludes, int desktop) override;
0048     QString desktopName(int desktop) override;
0049     void setDesktopName(int desktop, const QString &name) override;
0050     bool showingDesktop() override;
0051     void setShowingDesktop(bool showing) override;
0052     void setUserTime(WId win, long time) override;
0053     void setExtendedStrut(WId win,
0054                           int left_width,
0055                           int left_start,
0056                           int left_end,
0057                           int right_width,
0058                           int right_start,
0059                           int right_end,
0060                           int top_width,
0061                           int top_start,
0062                           int top_end,
0063                           int bottom_width,
0064                           int bottom_start,
0065                           int bottom_end) override;
0066     void setStrut(WId win, int left, int right, int top, int bottom) override;
0067     bool allowedActionsSupported() override;
0068     QString readNameProperty(WId window, unsigned long atom) override;
0069     void allowExternalProcessWindowActivation(int pid) override;
0070     void setBlockingCompositing(WId window, bool active) override;
0071     bool mapViewport() override;
0072     int viewportToDesktop(const QPoint &pos) override;
0073     int viewportWindowToDesktop(const QRect &r) override;
0074     QPoint desktopToViewport(int desktop, bool absolute) override;
0075     QPoint constrainViewportRelativePosition(const QPoint &pos) override;
0076 
0077     void connectNotify(const QMetaMethod &signal) override;
0078 };
0079 
0080 #endif