Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglobals.h
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | |||||
124 | */ | 124 | */ | ||
125 | enum PointerAxisDirection { | 125 | enum PointerAxisDirection { | ||
126 | PointerAxisUp, | 126 | PointerAxisUp, | ||
127 | PointerAxisDown, | 127 | PointerAxisDown, | ||
128 | PointerAxisLeft, | 128 | PointerAxisLeft, | ||
129 | PointerAxisRight | 129 | PointerAxisRight | ||
130 | }; | 130 | }; | ||
131 | 131 | | |||
132 | /** | ||||
133 | * @brief Directions for swipe gestures | ||||
134 | * @since 5.10 | ||||
135 | **/ | ||||
136 | enum class SwipeDirection { | ||||
137 | Invalid, | ||||
138 | Down, | ||||
139 | Left, | ||||
140 | Up, | ||||
141 | Right | ||||
142 | }; | ||||
143 | | ||||
132 | inline | 144 | inline | ||
133 | KWIN_EXPORT xcb_connection_t *connection() | 145 | KWIN_EXPORT xcb_connection_t *connection() | ||
134 | { | 146 | { | ||
135 | static xcb_connection_t *s_con = nullptr; | 147 | static xcb_connection_t *s_con = nullptr; | ||
136 | if (!s_con) { | 148 | if (!s_con) { | ||
137 | s_con = reinterpret_cast<xcb_connection_t*>(qApp->property("x11Connection").value<void*>()); | 149 | s_con = reinterpret_cast<xcb_connection_t*>(qApp->property("x11Connection").value<void*>()); | ||
138 | } | 150 | } | ||
139 | Q_ASSERT(qApp); | 151 | Q_ASSERT(qApp); | ||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |