Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show All 22 Lines | |||||
23 | #include <kwinglobals.h> | 23 | #include <kwinglobals.h> | ||
24 | #include <epoxy/egl.h> | 24 | #include <epoxy/egl.h> | ||
25 | #include <fixx11h.h> | 25 | #include <fixx11h.h> | ||
26 | #include <QImage> | 26 | #include <QImage> | ||
27 | #include <QObject> | 27 | #include <QObject> | ||
28 | 28 | | |||
29 | #include <functional> | 29 | #include <functional> | ||
30 | 30 | | |||
31 | class QAction; | ||||
32 | | ||||
31 | namespace KWayland { | 33 | namespace KWayland { | ||
32 | namespace Server { | 34 | namespace Server { | ||
33 | class OutputConfigurationInterface; | 35 | class OutputConfigurationInterface; | ||
34 | } | 36 | } | ||
35 | } | 37 | } | ||
36 | 38 | | |||
37 | namespace KWin | 39 | namespace KWin | ||
38 | { | 40 | { | ||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 53 | public: | |||
190 | * During the interactive window selection the cursor is turned into a crosshair cursor. | 192 | * During the interactive window selection the cursor is turned into a crosshair cursor. | ||
191 | * | 193 | * | ||
192 | * The default implementation forwards to InputRedirection. | 194 | * The default implementation forwards to InputRedirection. | ||
193 | * | 195 | * | ||
194 | * @param callback The function to invoke once the interactive position selection ends | 196 | * @param callback The function to invoke once the interactive position selection ends | ||
195 | **/ | 197 | **/ | ||
196 | virtual void startInteractivePositionSelection(std::function<void(const QPoint &)> callback); | 198 | virtual void startInteractivePositionSelection(std::function<void(const QPoint &)> callback); | ||
197 | 199 | | |||
200 | /** | ||||
201 | * Platform specific preparation for an @p action which is used for KGlobalAccel. | ||||
202 | * | ||||
203 | * A platform might need to do preparation for an @p action before | ||||
204 | * it can be used with KGlobalAccel. | ||||
205 | * | ||||
206 | * Code using KGlobalAccel should invoke this method for the @p action | ||||
207 | * prior to setting up any shortcuts and connections. | ||||
208 | * | ||||
209 | * The default implementation does nothing. | ||||
210 | * | ||||
211 | * @param action The action which will be used with KGlobalAccel. | ||||
212 | * @since 5.10 | ||||
213 | **/ | ||||
214 | virtual void setupActionForGlobalAccel(QAction *action); | ||||
215 | | ||||
198 | bool usesSoftwareCursor() const { | 216 | bool usesSoftwareCursor() const { | ||
199 | return m_softWareCursor; | 217 | return m_softWareCursor; | ||
200 | } | 218 | } | ||
201 | QImage softwareCursor() const; | 219 | QImage softwareCursor() const; | ||
202 | QPoint softwareCursorHotspot() const; | 220 | QPoint softwareCursorHotspot() const; | ||
203 | void markCursorAsRendered(); | 221 | void markCursorAsRendered(); | ||
204 | 222 | | |||
205 | /** | 223 | /** | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |