Changeset View
Changeset View
Standalone View
Standalone View
cursor.h
Show All 28 Lines | |||||
29 | #include <xcb/xcb.h> | 29 | #include <xcb/xcb.h> | ||
30 | 30 | | |||
31 | class QTimer; | 31 | class QTimer; | ||
32 | 32 | | |||
33 | namespace KWin | 33 | namespace KWin | ||
34 | { | 34 | { | ||
35 | 35 | | |||
36 | namespace ExtendedCursor { | 36 | namespace ExtendedCursor { | ||
37 | /** | ||||
38 | * Extension of Qt::CursorShape with values not currently present there | ||||
39 | **/ | ||||
37 | enum Shape { | 40 | enum Shape { | ||
38 | SizeNorthWest = 0x100 + 0, | 41 | SizeNorthWest = 0x100 + 0, | ||
39 | SizeNorth = 0x100 + 1, | 42 | SizeNorth = 0x100 + 1, | ||
40 | SizeNorthEast = 0x100 + 2, | 43 | SizeNorthEast = 0x100 + 2, | ||
41 | SizeEast = 0x100 + 3, | 44 | SizeEast = 0x100 + 3, | ||
42 | SizeWest = 0x100 + 4, | 45 | SizeWest = 0x100 + 4, | ||
43 | SizeSouthEast = 0x100 + 5, | 46 | SizeSouthEast = 0x100 + 5, | ||
44 | SizeSouth = 0x100 + 6, | 47 | SizeSouth = 0x100 + 6, | ||
45 | SizeSouthWest = 0x100 + 7 | 48 | SizeSouthWest = 0x100 + 7 | ||
46 | }; | 49 | }; | ||
47 | } | 50 | } | ||
48 | /** | | |||
49 | * Extension of Qt::CursorShape with values not currently present there | | |||
50 | */ | | |||
51 | | ||||
52 | 51 | | |||
53 | /** | 52 | /** | ||
54 | * @brief Wrapper round Qt::CursorShape with extensions enums into a single entity | 53 | * @brief Wrapper round Qt::CursorShape with extensions enums into a single entity | ||
55 | */ | 54 | */ | ||
56 | class KWIN_EXPORT CursorShape { | 55 | class KWIN_EXPORT CursorShape { | ||
57 | public: | 56 | public: | ||
58 | CursorShape() = default; | 57 | CursorShape() = default; | ||
59 | CursorShape(Qt::CursorShape qtShape) { | 58 | CursorShape(Qt::CursorShape qtShape) { | ||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |