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 854 Lines • ▼ Show 20 Line(s) | 335 | public: | |||
868 | 869 | | |||
869 | /** | 870 | /** | ||
870 | * Returns whether window rules can be applied to this client. | 871 | * Returns whether window rules can be applied to this client. | ||
871 | * | 872 | * | ||
872 | * Default implementation returns @c true. | 873 | * Default implementation returns @c true. | ||
873 | */ | 874 | */ | ||
874 | virtual bool supportsWindowRules() const; | 875 | virtual bool supportsWindowRules() const; | ||
875 | 876 | | |||
877 | /** | ||||
878 | * Returns the extents of the server-side decoration. | ||||
879 | * | ||||
880 | * Note that the returned margins object will have all margins set to 0 if | ||||
881 | * the client doesn't have a server-side decoration. | ||||
882 | */ | ||||
883 | QMargins frameMargins() const; | ||||
884 | | ||||
876 | public Q_SLOTS: | 885 | public Q_SLOTS: | ||
877 | virtual void closeWindow() = 0; | 886 | virtual void closeWindow() = 0; | ||
878 | 887 | | |||
879 | Q_SIGNALS: | 888 | Q_SIGNALS: | ||
880 | void fullScreenChanged(); | 889 | void fullScreenChanged(); | ||
881 | void skipTaskbarChanged(); | 890 | void skipTaskbarChanged(); | ||
882 | void skipPagerChanged(); | 891 | void skipPagerChanged(); | ||
883 | void skipSwitcherChanged(); | 892 | void skipSwitcherChanged(); | ||
▲ Show 20 Lines • Show All 502 Lines • Show Last 20 Lines |