Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | class OverlayWindow; | 43 | class OverlayWindow; | ||
44 | class OpenGLBackend; | 44 | class OpenGLBackend; | ||
45 | class QPainterBackend; | 45 | class QPainterBackend; | ||
46 | class Screens; | 46 | class Screens; | ||
47 | class ScreenEdges; | 47 | class ScreenEdges; | ||
48 | class Toplevel; | 48 | class Toplevel; | ||
49 | class WaylandCursorTheme; | 49 | class WaylandCursorTheme; | ||
50 | 50 | | |||
51 | namespace Decoration | ||||
52 | { | ||||
53 | class Renderer; | ||||
54 | class DecoratedClientImpl; | ||||
55 | } | ||||
56 | | ||||
51 | class KWIN_EXPORT Platform : public QObject | 57 | class KWIN_EXPORT Platform : public QObject | ||
52 | { | 58 | { | ||
53 | Q_OBJECT | 59 | Q_OBJECT | ||
54 | public: | 60 | public: | ||
55 | virtual ~Platform(); | 61 | virtual ~Platform(); | ||
56 | 62 | | |||
57 | virtual void init() = 0; | 63 | virtual void init() = 0; | ||
58 | virtual Screens *createScreens(QObject *parent = nullptr); | 64 | virtual Screens *createScreens(QObject *parent = nullptr); | ||
▲ Show 20 Lines • Show All 244 Lines • ▼ Show 20 Line(s) | |||||
303 | } | 309 | } | ||
304 | 310 | | |||
305 | /** | 311 | /** | ||
306 | * Creates the OverlayWindow required for X11 based compositors. | 312 | * Creates the OverlayWindow required for X11 based compositors. | ||
307 | * Default implementation returns @c nullptr. | 313 | * Default implementation returns @c nullptr. | ||
308 | **/ | 314 | **/ | ||
309 | virtual OverlayWindow *createOverlayWindow(); | 315 | virtual OverlayWindow *createOverlayWindow(); | ||
310 | 316 | | |||
317 | /** | ||||
318 | * Creates the Decoration::Renderer for the given @p client. | ||||
319 | * | ||||
320 | * The default implementation creates a Renderer suited for the Compositor, @c nullptr if there is no Compositor. | ||||
321 | **/ | ||||
322 | virtual Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client); | ||||
323 | | ||||
311 | public Q_SLOTS: | 324 | public Q_SLOTS: | ||
312 | void pointerMotion(const QPointF &position, quint32 time); | 325 | void pointerMotion(const QPointF &position, quint32 time); | ||
313 | void pointerButtonPressed(quint32 button, quint32 time); | 326 | void pointerButtonPressed(quint32 button, quint32 time); | ||
314 | void pointerButtonReleased(quint32 button, quint32 time); | 327 | void pointerButtonReleased(quint32 button, quint32 time); | ||
315 | void pointerAxisHorizontal(qreal delta, quint32 time); | 328 | void pointerAxisHorizontal(qreal delta, quint32 time); | ||
316 | void pointerAxisVertical(qreal delta, quint32 time); | 329 | void pointerAxisVertical(qreal delta, quint32 time); | ||
317 | void keyboardKeyPressed(quint32 key, quint32 time); | 330 | void keyboardKeyPressed(quint32 key, quint32 time); | ||
318 | void keyboardKeyReleased(quint32 key, quint32 time); | 331 | void keyboardKeyReleased(quint32 key, quint32 time); | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |