Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.h
1 | /******************************************************************** | 1 | /******************************************************************** | ||
---|---|---|---|---|---|
2 | KWin - the KDE window manager | 2 | KWin - the KDE window manager | ||
3 | This file is part of the KDE project. | 3 | This file is part of the KDE project. | ||
4 | 4 | | |||
5 | Copyright (C) 2015 Martin Gräßlin <mgraesslin@kde.org> | 5 | Copyright (C) 2015 Martin Gräßlin <mgraesslin@kde.org> | ||
6 | Copyright (C) 2019 Vlad Zagorodniy <vladzzag@gmail.com> | ||||
6 | 7 | | |||
7 | This program is free software; you can redistribute it and/or modify | 8 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | 9 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | 10 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | 11 | (at your option) any later version. | ||
11 | 12 | | |||
12 | This program is distributed in the hope that it will be useful, | 13 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
▲ Show 20 Lines • Show All 815 Lines • ▼ Show 20 Line(s) | 323 | public: | |||
829 | 830 | | |||
830 | /** | 831 | /** | ||
831 | * Returns whether window rules can be applied to this client. | 832 | * Returns whether window rules can be applied to this client. | ||
832 | * | 833 | * | ||
833 | * Default implementation returns @c true. | 834 | * Default implementation returns @c true. | ||
834 | */ | 835 | */ | ||
835 | virtual bool supportsWindowRules() const; | 836 | virtual bool supportsWindowRules() const; | ||
836 | 837 | | |||
838 | /** | ||||
839 | * Returns the extents of the server-side decoration. | ||||
840 | * | ||||
841 | * Note that the returned margins object will have all margins set to 0 if | ||||
842 | * the client doesn't have a server-side decoration. | ||||
843 | */ | ||||
844 | QMargins frameMargins() const; | ||||
845 | | ||||
837 | public Q_SLOTS: | 846 | public Q_SLOTS: | ||
838 | virtual void closeWindow() = 0; | 847 | virtual void closeWindow() = 0; | ||
839 | 848 | | |||
840 | Q_SIGNALS: | 849 | Q_SIGNALS: | ||
841 | void fullScreenChanged(); | 850 | void fullScreenChanged(); | ||
842 | void skipTaskbarChanged(); | 851 | void skipTaskbarChanged(); | ||
843 | void skipPagerChanged(); | 852 | void skipPagerChanged(); | ||
844 | void skipSwitcherChanged(); | 853 | void skipSwitcherChanged(); | ||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |