Changeset View
Changeset View
Standalone View
Standalone View
shadow.h
Show All 25 Lines | |||||
26 | #include <kwineffects.h> | 26 | #include <kwineffects.h> | ||
27 | 27 | | |||
28 | namespace KDecoration2 | 28 | namespace KDecoration2 | ||
29 | { | 29 | { | ||
30 | class Decoration; | 30 | class Decoration; | ||
31 | class DecorationShadow; | 31 | class DecorationShadow; | ||
32 | } | 32 | } | ||
33 | 33 | | |||
34 | namespace KWayland | 34 | namespace KWaylandServer | ||
35 | { | | |||
36 | namespace Server | | |||
37 | { | 35 | { | ||
38 | class ShadowInterface; | 36 | class ShadowInterface; | ||
39 | } | 37 | } | ||
40 | } | | |||
41 | 38 | | |||
42 | namespace KWin { | 39 | namespace KWin { | ||
43 | 40 | | |||
44 | class Toplevel; | 41 | class Toplevel; | ||
45 | 42 | | |||
46 | /** | 43 | /** | ||
47 | * @short Class representing a Window's Shadow to be rendered by the Compositor. | 44 | * @short Class representing a Window's Shadow to be rendered by the Compositor. | ||
48 | * | 45 | * | ||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | |||||
168 | private: | 165 | private: | ||
169 | static Shadow *createShadowFromX11(Toplevel *toplevel); | 166 | static Shadow *createShadowFromX11(Toplevel *toplevel); | ||
170 | static Shadow *createShadowFromDecoration(Toplevel *toplevel); | 167 | static Shadow *createShadowFromDecoration(Toplevel *toplevel); | ||
171 | static Shadow *createShadowFromWayland(Toplevel *toplevel); | 168 | static Shadow *createShadowFromWayland(Toplevel *toplevel); | ||
172 | static Shadow *createShadowFromInternalWindow(Toplevel *toplevel); | 169 | static Shadow *createShadowFromInternalWindow(Toplevel *toplevel); | ||
173 | static QVector<uint32_t> readX11ShadowProperty(xcb_window_t id); | 170 | static QVector<uint32_t> readX11ShadowProperty(xcb_window_t id); | ||
174 | bool init(const QVector<uint32_t> &data); | 171 | bool init(const QVector<uint32_t> &data); | ||
175 | bool init(KDecoration2::Decoration *decoration); | 172 | bool init(KDecoration2::Decoration *decoration); | ||
176 | bool init(const QPointer<KWayland::Server::ShadowInterface> &shadow); | 173 | bool init(const QPointer<KWaylandServer::ShadowInterface> &shadow); | ||
177 | bool init(const QWindow *window); | 174 | bool init(const QWindow *window); | ||
178 | Toplevel *m_topLevel; | 175 | Toplevel *m_topLevel; | ||
179 | // shadow pixmaps | 176 | // shadow pixmaps | ||
180 | QPixmap m_shadowElements[ShadowElementsCount]; | 177 | QPixmap m_shadowElements[ShadowElementsCount]; | ||
181 | // shadow offsets | 178 | // shadow offsets | ||
182 | int m_topOffset; | 179 | int m_topOffset; | ||
183 | int m_rightOffset; | 180 | int m_rightOffset; | ||
184 | int m_bottomOffset; | 181 | int m_bottomOffset; | ||
Show All 11 Lines |