Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.h
Show All 33 Lines | |||||
34 | namespace Server | 34 | namespace Server | ||
35 | { | 35 | { | ||
36 | class SurfaceInterface; | 36 | class SurfaceInterface; | ||
37 | } | 37 | } | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | namespace KWin | 40 | namespace KWin | ||
41 | { | 41 | { | ||
42 | | ||||
43 | class CursorImage; | 42 | class CursorImage; | ||
44 | class InputRedirection; | 43 | class InputRedirection; | ||
45 | class Toplevel; | 44 | class Toplevel; | ||
46 | class WaylandCursorTheme; | 45 | class WaylandCursorTheme; | ||
46 | class CursorShape; | ||||
47 | 47 | | |||
48 | namespace Decoration | 48 | namespace Decoration | ||
49 | { | 49 | { | ||
50 | class DecoratedClientImpl; | 50 | class DecoratedClientImpl; | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | namespace LibInput | 53 | namespace LibInput | ||
54 | { | 54 | { | ||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 192 | private: | |||
198 | void updateMoveResize(); | 198 | void updateMoveResize(); | ||
199 | void updateDrag(); | 199 | void updateDrag(); | ||
200 | void updateDragCursor(); | 200 | void updateDragCursor(); | ||
201 | void loadTheme(); | 201 | void loadTheme(); | ||
202 | struct Image { | 202 | struct Image { | ||
203 | QImage image; | 203 | QImage image; | ||
204 | QPoint hotSpot; | 204 | QPoint hotSpot; | ||
205 | }; | 205 | }; | ||
206 | void loadThemeCursor(Qt::CursorShape shape, Image *image); | 206 | void loadThemeCursor(CursorShape shape, Image *image); | ||
207 | void loadThemeCursor(const QByteArray &shape, Image *image); | 207 | void loadThemeCursor(const QByteArray &shape, Image *image); | ||
208 | template <typename T> | 208 | template <typename T> | ||
209 | void loadThemeCursor(const T &shape, QHash<T, Image> &cursors, Image *image); | 209 | void loadThemeCursor(const T &shape, QHash<T, Image> &cursors, Image *image); | ||
210 | 210 | | |||
211 | enum class CursorSource { | 211 | enum class CursorSource { | ||
212 | LockScreen, | 212 | LockScreen, | ||
213 | EffectsOverride, | 213 | EffectsOverride, | ||
214 | MoveResize, | 214 | MoveResize, | ||
Show All 15 Lines | |||||
230 | } m_serverCursor; | 230 | } m_serverCursor; | ||
231 | 231 | | |||
232 | Image m_effectsCursor; | 232 | Image m_effectsCursor; | ||
233 | Image m_decorationCursor; | 233 | Image m_decorationCursor; | ||
234 | QMetaObject::Connection m_decorationConnection; | 234 | QMetaObject::Connection m_decorationConnection; | ||
235 | Image m_fallbackCursor; | 235 | Image m_fallbackCursor; | ||
236 | Image m_moveResizeCursor; | 236 | Image m_moveResizeCursor; | ||
237 | Image m_windowSelectionCursor; | 237 | Image m_windowSelectionCursor; | ||
238 | QHash<Qt::CursorShape, Image> m_cursors; | 238 | QHash<CursorShape, Image> m_cursors; | ||
239 | QHash<QByteArray, Image> m_cursorsByName; | 239 | QHash<QByteArray, Image> m_cursorsByName; | ||
240 | QElapsedTimer m_surfaceRenderedTimer; | 240 | QElapsedTimer m_surfaceRenderedTimer; | ||
241 | struct { | 241 | struct { | ||
242 | Image cursor; | 242 | Image cursor; | ||
243 | QMetaObject::Connection connection; | 243 | QMetaObject::Connection connection; | ||
244 | } m_drag; | 244 | } m_drag; | ||
245 | }; | 245 | }; | ||
246 | 246 | | |||
247 | } | 247 | } | ||
248 | 248 | | |||
249 | #endif | 249 | #endif |