Changeset View
Changeset View
Standalone View
Standalone View
deleted.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) 2006 Lubos Lunak <l.lunak@kde.org> | 5 | Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org> | ||
6 | Copyright (C) 2019 Vlad Zahorodnii <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 All 25 Lines | |||||
39 | 40 | | |||
40 | public: | 41 | public: | ||
41 | static Deleted* create(Toplevel* c); | 42 | static Deleted* create(Toplevel* c); | ||
42 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | 43 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | ||
43 | void refWindow(); | 44 | void refWindow(); | ||
44 | void unrefWindow(); | 45 | void unrefWindow(); | ||
45 | void discard(); | 46 | void discard(); | ||
46 | QRect bufferGeometry() const override; | 47 | QRect bufferGeometry() const override; | ||
47 | QMargins bufferMargins() const override; | | |||
48 | QMargins frameMargins() const override; | 48 | QMargins frameMargins() const override; | ||
49 | qreal bufferScale() const override; | 49 | qreal bufferScale() const override; | ||
50 | int desktop() const override; | 50 | int desktop() const override; | ||
51 | QStringList activities() const override; | 51 | QStringList activities() const override; | ||
52 | QVector<VirtualDesktop *> desktops() const override; | 52 | QVector<VirtualDesktop *> desktops() const override; | ||
53 | QPoint clientPos() const override; | 53 | QPoint clientPos() const override; | ||
54 | QSize clientSize() const override; | 54 | QSize clientSize() const override; | ||
55 | QPoint clientContentPos() const override { | 55 | QPoint clientContentPos() const override { | ||
▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 194 | private: | |||
197 | ~Deleted() override; // deleted only using unrefWindow() | 197 | ~Deleted() override; // deleted only using unrefWindow() | ||
198 | 198 | | |||
199 | void addTransient(Deleted *transient); | 199 | void addTransient(Deleted *transient); | ||
200 | void removeTransient(Deleted *transient); | 200 | void removeTransient(Deleted *transient); | ||
201 | void addTransientFor(AbstractClient *parent); | 201 | void addTransientFor(AbstractClient *parent); | ||
202 | void removeTransientFor(Deleted *parent); | 202 | void removeTransientFor(Deleted *parent); | ||
203 | 203 | | |||
204 | QRect m_bufferGeometry; | 204 | QRect m_bufferGeometry; | ||
205 | QMargins m_bufferMargins; | | |||
206 | QMargins m_frameMargins; | 205 | QMargins m_frameMargins; | ||
207 | 206 | | |||
208 | int delete_refcount; | 207 | int delete_refcount; | ||
209 | int desk; | 208 | int desk; | ||
210 | QStringList activityList; | 209 | QStringList activityList; | ||
211 | QRect contentsRect; // for clientPos()/clientSize() | 210 | QRect contentsRect; // for clientPos()/clientSize() | ||
212 | QPoint m_contentPos; | 211 | QPoint m_contentPos; | ||
213 | QRect transparent_rect; | 212 | QRect transparent_rect; | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |