Changeset View
Changeset View
Standalone View
Standalone View
abstract_wayland_output.h
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
101 | /** | 101 | /** | ||
102 | * Enable or disable the output. | 102 | * Enable or disable the output. | ||
103 | * | 103 | * | ||
104 | * This differs from updateDpms as it also removes the wl_output. | 104 | * This differs from updateDpms as it also removes the wl_output. | ||
105 | * The default is on. | 105 | * The default is on. | ||
106 | */ | 106 | */ | ||
107 | void setEnabled(bool enable); | 107 | void setEnabled(bool enable); | ||
108 | 108 | | |||
109 | QSize orientateSize(const QSize &size) const; | ||||
110 | | ||||
109 | Q_SIGNALS: | 111 | Q_SIGNALS: | ||
110 | void modeChanged(); | 112 | void modeChanged(); | ||
111 | 113 | | |||
112 | protected: | 114 | protected: | ||
113 | void initWaylandOutput(); | 115 | void initWaylandOutput(); | ||
114 | void initWaylandOutputDevice(const QString &model, | 116 | void initWaylandOutputDevice(const QString &model, | ||
115 | const QString &manufacturer, | 117 | const QString &manufacturer, | ||
116 | const QByteArray &uuid, | 118 | const QByteArray &uuid, | ||
Show All 38 Lines | 156 | virtual void updateMode(int modeIndex) { | |||
155 | Q_UNUSED(modeIndex); | 157 | Q_UNUSED(modeIndex); | ||
156 | } | 158 | } | ||
157 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 159 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
158 | Q_UNUSED(transform); | 160 | Q_UNUSED(transform); | ||
159 | } | 161 | } | ||
160 | 162 | | |||
161 | void setWaylandMode(const QSize &size, int refreshRate); | 163 | void setWaylandMode(const QSize &size, int refreshRate); | ||
162 | 164 | | |||
163 | QSize orientateSize(const QSize &size) const; | | |||
164 | | ||||
165 | private: | 165 | private: | ||
166 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 166 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
167 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 167 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
168 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 168 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
169 | 169 | | |||
170 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 170 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
171 | 171 | | |||
172 | QPoint m_globalPos; | 172 | QPoint m_globalPos; | ||
Show All 10 Lines |