Changeset View
Changeset View
Standalone View
Standalone View
plugins/windowsystem/windowsystem.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2019 Martin Flöser <mgraesslin@kde.org> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2 of | ||||
7 | * the License or (at your option) version 3 or any later version | ||||
8 | * accepted by the membership of KDE e.V. (or its successor approved | ||||
9 | * by the membership of KDE e.V.), which shall act as a proxy | ||||
10 | * defined in Section 14 of version 3 of the license. | ||||
11 | * | ||||
12 | * This program is distributed in the hope that it will be useful, | ||||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | * GNU General Public License for more details. | ||||
16 | * | ||||
17 | * You should have received a copy of the GNU General Public License | ||||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
19 | */ | ||||
20 | #pragma once | ||||
21 | | ||||
22 | #include <KWindowSystem/private/kwindowsystem_p.h> | ||||
23 | | ||||
24 | #include <QObject> | ||||
25 | | ||||
26 | namespace KWin | ||||
27 | { | ||||
28 | | ||||
29 | class WindowSystem : public QObject, public KWindowSystemPrivate | ||||
30 | { | ||||
31 | Q_OBJECT | ||||
32 | public: | ||||
33 | WindowSystem(); | ||||
34 | QList<WId> windows() override; | ||||
35 | QList<WId> stackingOrder() override; | ||||
36 | WId activeWindow() override; | ||||
37 | void activateWindow(WId win, long time) override; | ||||
38 | void forceActiveWindow(WId win, long time) override; | ||||
39 | void demandAttention(WId win, bool set) override; | ||||
40 | bool compositingActive() override; | ||||
41 | int currentDesktop() override; | ||||
42 | int numberOfDesktops() override; | ||||
43 | void setCurrentDesktop(int desktop) override; | ||||
44 | void setOnAllDesktops(WId win, bool b) override; | ||||
45 | void setOnDesktop(WId win, int desktop) override; | ||||
46 | void setOnActivities(WId win, const QStringList &activities) override; | ||||
47 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | ||||
48 | WId transientFor(WId window) override; | ||||
49 | WId groupLeader(WId window) override; | ||||
50 | #endif | ||||
51 | QPixmap icon(WId win, int width, int height, bool scale, int flags) override; | ||||
52 | void setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon) override; | ||||
53 | void setType(WId win, NET::WindowType windowType) override; | ||||
54 | void setState(WId win, NET::States state) override; | ||||
55 | void clearState(WId win, NET::States state) override; | ||||
56 | void minimizeWindow(WId win) override; | ||||
57 | void unminimizeWindow(WId win) override; | ||||
58 | void raiseWindow(WId win) override; | ||||
59 | void lowerWindow(WId win) override; | ||||
60 | bool icccmCompliantMappingState() override; | ||||
61 | QRect workArea(int desktop) override; | ||||
62 | QRect workArea(const QList<WId> &excludes, int desktop) override; | ||||
63 | QString desktopName(int desktop) override; | ||||
64 | void setDesktopName(int desktop, const QString &name) override; | ||||
65 | bool showingDesktop() override; | ||||
66 | void setShowingDesktop(bool showing) override; | ||||
67 | void setUserTime(WId win, long time) override; | ||||
68 | void setExtendedStrut(WId win, int left_width, int left_start, int left_end, | ||||
69 | int right_width, int right_start, int right_end, int top_width, int top_start, int top_end, | ||||
70 | int bottom_width, int bottom_start, int bottom_end) override; | ||||
71 | void setStrut(WId win, int left, int right, int top, int bottom) override; | ||||
72 | bool allowedActionsSupported() override; | ||||
73 | QString readNameProperty(WId window, unsigned long atom) override; | ||||
74 | void allowExternalProcessWindowActivation(int pid) override; | ||||
75 | void setBlockingCompositing(WId window, bool active) override; | ||||
76 | bool mapViewport() override; | ||||
77 | int viewportToDesktop(const QPoint &pos) override; | ||||
78 | int viewportWindowToDesktop(const QRect &r) override; | ||||
79 | QPoint desktopToViewport(int desktop, bool absolute) override; | ||||
80 | QPoint constrainViewportRelativePosition(const QPoint &pos) override; | ||||
81 | | ||||
82 | void connectNotify(const QMetaMethod &signal) override; | ||||
83 | }; | ||||
84 | | ||||
85 | } |