Changeset View
Changeset View
Standalone View
Standalone View
src/kwindowshadow_p.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org> | ||||
3 | | ||||
4 | This library is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU Lesser General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2.1 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This library is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | Lesser General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU Lesser General Public | ||||
15 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef KWINDOWSHADOW_P_H | ||||
19 | #define KWINDOWSHADOW_P_H | ||||
20 | | ||||
21 | // | ||||
22 | // W A R N I N G | ||||
23 | // ------------- | ||||
24 | // | ||||
25 | // This file is not part of the KF API. It exists purely as an | ||||
26 | // implementation detail. This header file may change from version to | ||||
27 | // version without notice, or even be removed. | ||||
28 | // | ||||
29 | // We mean it. | ||||
30 | // | ||||
31 | | ||||
32 | #include "kwindowshadow.h" | ||||
33 | | ||||
34 | #include <QPointer> | ||||
35 | | ||||
36 | class KWINDOWSYSTEM_EXPORT KWindowShadowTilePrivate | ||||
37 | { | ||||
38 | public: | ||||
39 | virtual ~KWindowShadowTilePrivate(); | ||||
40 | | ||||
41 | virtual bool create() = 0; | ||||
42 | virtual void destroy() = 0; | ||||
43 | | ||||
44 | static KWindowShadowTilePrivate *get(const KWindowShadowTile *tile); | ||||
45 | | ||||
46 | QImage image; | ||||
47 | bool isCreated = false; | ||||
48 | }; | ||||
49 | | ||||
50 | class KWINDOWSYSTEM_EXPORT KWindowShadowPrivate | ||||
51 | { | ||||
52 | public: | ||||
53 | virtual ~KWindowShadowPrivate(); | ||||
54 | | ||||
55 | virtual bool create() = 0; | ||||
56 | virtual void destroy() = 0; | ||||
57 | | ||||
58 | bool prepareTiles(); | ||||
59 | | ||||
60 | QPointer<QWindow> window; | ||||
61 | KWindowShadowTile::Ptr leftTile; | ||||
62 | KWindowShadowTile::Ptr topLeftTile; | ||||
63 | KWindowShadowTile::Ptr topTile; | ||||
64 | KWindowShadowTile::Ptr topRightTile; | ||||
65 | KWindowShadowTile::Ptr rightTile; | ||||
66 | KWindowShadowTile::Ptr bottomRightTile; | ||||
67 | KWindowShadowTile::Ptr bottomTile; | ||||
68 | KWindowShadowTile::Ptr bottomLeftTile; | ||||
69 | QMargins padding; | ||||
70 | bool isCreated = false; | ||||
71 | }; | ||||
72 | | ||||
73 | #endif // KWINDOWSHADOW_P_H |