Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/wayland_output.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | 48 | | |||
49 | class WaylandOutput : public AbstractWaylandOutput | 49 | class WaylandOutput : public AbstractWaylandOutput | ||
50 | { | 50 | { | ||
51 | Q_OBJECT | 51 | Q_OBJECT | ||
52 | public: | 52 | public: | ||
53 | WaylandOutput(KWayland::Client::Surface *surface, WaylandBackend *backend); | 53 | WaylandOutput(KWayland::Client::Surface *surface, WaylandBackend *backend); | ||
54 | ~WaylandOutput() override; | 54 | ~WaylandOutput() override; | ||
55 | 55 | | |||
56 | void init(const QPoint &logicalPosition, const QSize &pixelSize); | | |||
57 | | ||||
58 | virtual void lockPointer(KWayland::Client::Pointer *pointer, bool lock) { | 56 | virtual void lockPointer(KWayland::Client::Pointer *pointer, bool lock) { | ||
59 | Q_UNUSED(pointer) | 57 | Q_UNUSED(pointer) | ||
60 | Q_UNUSED(lock) | 58 | Q_UNUSED(lock) | ||
61 | } | 59 | } | ||
62 | 60 | | |||
63 | virtual bool pointerIsLocked() { return false; } | 61 | virtual bool pointerIsLocked() { return false; } | ||
64 | 62 | | |||
65 | /** | 63 | /** | ||
Show All 19 Lines | 81 | Q_SIGNALS: | |||
85 | void frameRendered(); | 83 | void frameRendered(); | ||
86 | 84 | | |||
87 | protected: | 85 | protected: | ||
88 | WaylandBackend *backend() { | 86 | WaylandBackend *backend() { | ||
89 | return m_backend; | 87 | return m_backend; | ||
90 | } | 88 | } | ||
91 | 89 | | |||
92 | private: | 90 | private: | ||
91 | void init(const QPoint &logicalPosition, const QSize &pixelSize); | ||||
92 | | ||||
93 | KWayland::Client::Surface *m_surface; | 93 | KWayland::Client::Surface *m_surface; | ||
94 | WaylandBackend *m_backend; | 94 | WaylandBackend *m_backend; | ||
95 | 95 | | |||
96 | bool m_rendered = false; | 96 | bool m_rendered = false; | ||
97 | | ||||
98 | friend class WaylandBackend; | ||||
97 | }; | 99 | }; | ||
98 | 100 | | |||
99 | class ShellOutput : public WaylandOutput | 101 | class ShellOutput : public WaylandOutput | ||
100 | { | 102 | { | ||
101 | public: | 103 | public: | ||
102 | ShellOutput(KWayland::Client::Surface *surface, | 104 | ShellOutput(KWayland::Client::Surface *surface, | ||
103 | KWayland::Client::Shell *shell, | 105 | KWayland::Client::Shell *shell, | ||
104 | WaylandBackend *backend); | 106 | WaylandBackend *backend); | ||
Show All 30 Lines |