Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/wayland_output.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 52 | public: | |||
---|---|---|---|---|---|
57 | 57 | | |||
58 | virtual void lockPointer(KWayland::Client::Pointer *pointer, bool lock) { | 58 | virtual void lockPointer(KWayland::Client::Pointer *pointer, bool lock) { | ||
59 | Q_UNUSED(pointer) | 59 | Q_UNUSED(pointer) | ||
60 | Q_UNUSED(lock) | 60 | Q_UNUSED(lock) | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | virtual bool pointerIsLocked() { return false; } | 63 | virtual bool pointerIsLocked() { return false; } | ||
64 | 64 | | |||
65 | QSize pixelSize() const override; | | |||
66 | | ||||
67 | /** | 65 | /** | ||
68 | * @brief defines the geometry of the output | 66 | * @brief defines the geometry of the output | ||
69 | * @param logicalPosition top left position of the output in compositor space | 67 | * @param logicalPosition top left position of the output in compositor space | ||
70 | * @param pixelSize output size as seen from the outside | 68 | * @param pixelSize output size as seen from the outside | ||
71 | */ | 69 | */ | ||
72 | void setGeometry(const QPoint &logicalPosition, const QSize &pixelSize); | 70 | void setGeometry(const QPoint &logicalPosition, const QSize &pixelSize); | ||
73 | 71 | | |||
74 | KWayland::Client::Surface* surface() const { | 72 | KWayland::Client::Surface* surface() const { | ||
Show All 15 Lines | 87 | protected: | |||
90 | WaylandBackend *backend() { | 88 | WaylandBackend *backend() { | ||
91 | return m_backend; | 89 | return m_backend; | ||
92 | } | 90 | } | ||
93 | 91 | | |||
94 | private: | 92 | private: | ||
95 | KWayland::Client::Surface *m_surface; | 93 | KWayland::Client::Surface *m_surface; | ||
96 | WaylandBackend *m_backend; | 94 | WaylandBackend *m_backend; | ||
97 | 95 | | |||
98 | QSize m_pixelSize; | | |||
99 | bool m_rendered = false; | 96 | bool m_rendered = false; | ||
100 | }; | 97 | }; | ||
101 | 98 | | |||
102 | class ShellOutput : public WaylandOutput | 99 | class ShellOutput : public WaylandOutput | ||
103 | { | 100 | { | ||
104 | public: | 101 | public: | ||
105 | ShellOutput(KWayland::Client::Surface *surface, | 102 | ShellOutput(KWayland::Client::Surface *surface, | ||
106 | KWayland::Client::Shell *shell, | 103 | KWayland::Client::Shell *shell, | ||
Show All 31 Lines |