Changeset View
Changeset View
Standalone View
Standalone View
decorations/decorationrenderer.h
- This file was copied to plugins/platforms/x11/standalone/x11_decoration_renderer.h.
Show All 17 Lines | |||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_DECORATION_RENDERER_H | 20 | #ifndef KWIN_DECORATION_RENDERER_H | ||
21 | #define KWIN_DECORATION_RENDERER_H | 21 | #define KWIN_DECORATION_RENDERER_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QRegion> | 24 | #include <QRegion> | ||
25 | 25 | | |||
26 | #include <xcb/xcb.h> | | |||
27 | | ||||
28 | #include <kwin_export.h> | 26 | #include <kwin_export.h> | ||
29 | 27 | | |||
30 | class QTimer; | | |||
31 | | ||||
32 | namespace KWin | 28 | namespace KWin | ||
33 | { | 29 | { | ||
34 | 30 | | |||
35 | class Deleted; | 31 | class Deleted; | ||
36 | 32 | | |||
37 | namespace Decoration | 33 | namespace Decoration | ||
38 | { | 34 | { | ||
39 | 35 | | |||
Show All 39 Lines | 56 | protected: | |||
79 | QImage renderToImage(const QRect &geo); | 75 | QImage renderToImage(const QRect &geo); | ||
80 | 76 | | |||
81 | private: | 77 | private: | ||
82 | DecoratedClientImpl *m_client; | 78 | DecoratedClientImpl *m_client; | ||
83 | QRegion m_scheduled; | 79 | QRegion m_scheduled; | ||
84 | bool m_imageSizesDirty; | 80 | bool m_imageSizesDirty; | ||
85 | }; | 81 | }; | ||
86 | 82 | | |||
87 | class X11Renderer : public Renderer | | |||
88 | { | | |||
89 | Q_OBJECT | | |||
90 | public: | | |||
91 | explicit X11Renderer(DecoratedClientImpl *client); | | |||
92 | virtual ~X11Renderer(); | | |||
93 | | ||||
94 | void reparent(Deleted *deleted) override; | | |||
95 | | ||||
96 | protected: | | |||
97 | void render() override; | | |||
98 | | ||||
99 | private: | | |||
100 | QTimer *m_scheduleTimer; | | |||
101 | xcb_gcontext_t m_gc; | | |||
102 | }; | | |||
103 | | ||||
104 | } | 83 | } | ||
105 | } | 84 | } | ||
106 | 85 | | |||
107 | #endif | 86 | #endif |