Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | class Outline; | 45 | class Outline; | ||
46 | class OutlineVisual; | 46 | class OutlineVisual; | ||
47 | class QPainterBackend; | 47 | class QPainterBackend; | ||
48 | class Screens; | 48 | class Screens; | ||
49 | class ScreenEdges; | 49 | class ScreenEdges; | ||
50 | class Toplevel; | 50 | class Toplevel; | ||
51 | class WaylandCursorTheme; | 51 | class WaylandCursorTheme; | ||
52 | 52 | | |||
53 | namespace Decoration | ||||
54 | { | ||||
55 | class Renderer; | ||||
56 | class DecoratedClientImpl; | ||||
57 | } | ||||
58 | | ||||
53 | class KWIN_EXPORT Platform : public QObject | 59 | class KWIN_EXPORT Platform : public QObject | ||
54 | { | 60 | { | ||
55 | Q_OBJECT | 61 | Q_OBJECT | ||
56 | public: | 62 | public: | ||
57 | virtual ~Platform(); | 63 | virtual ~Platform(); | ||
58 | 64 | | |||
59 | virtual void init() = 0; | 65 | virtual void init() = 0; | ||
60 | virtual Screens *createScreens(QObject *parent = nullptr); | 66 | virtual Screens *createScreens(QObject *parent = nullptr); | ||
▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Line(s) | |||||
320 | virtual void updateXTime(); | 326 | virtual void updateXTime(); | ||
321 | 327 | | |||
322 | /** | 328 | /** | ||
323 | * Creates the OutlineVisual for the given @p outline. | 329 | * Creates the OutlineVisual for the given @p outline. | ||
324 | * Default implementation creates an OutlineVisual suited for composited usage. | 330 | * Default implementation creates an OutlineVisual suited for composited usage. | ||
325 | **/ | 331 | **/ | ||
326 | virtual OutlineVisual *createOutline(Outline *outline); | 332 | virtual OutlineVisual *createOutline(Outline *outline); | ||
327 | 333 | | |||
334 | /** | ||||
335 | * Creates the Decoration::Renderer for the given @p client. | ||||
336 | * | ||||
337 | * The default implementation creates a Renderer suited for the Compositor, @c nullptr if there is no Compositor. | ||||
338 | **/ | ||||
339 | virtual Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client); | ||||
340 | | ||||
328 | public Q_SLOTS: | 341 | public Q_SLOTS: | ||
329 | void pointerMotion(const QPointF &position, quint32 time); | 342 | void pointerMotion(const QPointF &position, quint32 time); | ||
330 | void pointerButtonPressed(quint32 button, quint32 time); | 343 | void pointerButtonPressed(quint32 button, quint32 time); | ||
331 | void pointerButtonReleased(quint32 button, quint32 time); | 344 | void pointerButtonReleased(quint32 button, quint32 time); | ||
332 | void pointerAxisHorizontal(qreal delta, quint32 time); | 345 | void pointerAxisHorizontal(qreal delta, quint32 time); | ||
333 | void pointerAxisVertical(qreal delta, quint32 time); | 346 | void pointerAxisVertical(qreal delta, quint32 time); | ||
334 | void keyboardKeyPressed(quint32 key, quint32 time); | 347 | void keyboardKeyPressed(quint32 key, quint32 time); | ||
335 | void keyboardKeyReleased(quint32 key, quint32 time); | 348 | void keyboardKeyReleased(quint32 key, quint32 time); | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |