Changeset View
Changeset View
Standalone View
Standalone View
abstract_wayland_output.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
96 | /** | 96 | /** | ||
97 | * Enable or disable the output. | 97 | * Enable or disable the output. | ||
98 | * | 98 | * | ||
99 | * This differs from updateDpms as it also removes the wl_output. | 99 | * This differs from updateDpms as it also removes the wl_output. | ||
100 | * The default is on. | 100 | * The default is on. | ||
101 | */ | 101 | */ | ||
102 | void setEnabled(bool enable) override; | 102 | void setEnabled(bool enable) override; | ||
103 | 103 | | |||
104 | QSize orientateSize(const QSize &size) const; | ||||
105 | | ||||
104 | Q_SIGNALS: | 106 | Q_SIGNALS: | ||
105 | void modeChanged(); | 107 | void modeChanged(); | ||
106 | 108 | | |||
107 | protected: | 109 | protected: | ||
108 | void initInterfaces(const QString &model, const QString &manufacturer, | 110 | void initInterfaces(const QString &model, const QString &manufacturer, | ||
109 | const QByteArray &uuid, const QSize &physicalSize, | 111 | const QByteArray &uuid, const QSize &physicalSize, | ||
110 | const QVector<KWayland::Server::OutputDeviceInterface::Mode> &modes); | 112 | const QVector<KWayland::Server::OutputDeviceInterface::Mode> &modes); | ||
111 | 113 | | |||
Show All 30 Lines | 143 | virtual void updateMode(int modeIndex) { | |||
142 | Q_UNUSED(modeIndex); | 144 | Q_UNUSED(modeIndex); | ||
143 | } | 145 | } | ||
144 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 146 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
145 | Q_UNUSED(transform); | 147 | Q_UNUSED(transform); | ||
146 | } | 148 | } | ||
147 | 149 | | |||
148 | void setWaylandMode(const QSize &size, int refreshRate); | 150 | void setWaylandMode(const QSize &size, int refreshRate); | ||
149 | 151 | | |||
150 | QSize orientateSize(const QSize &size) const; | | |||
151 | | ||||
152 | private: | 152 | private: | ||
153 | void createWaylandOutput(); | 153 | void createWaylandOutput(); | ||
154 | void createXdgOutput(); | 154 | void createXdgOutput(); | ||
155 | 155 | | |||
156 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 156 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
157 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 157 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
158 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 158 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
159 | 159 | | |||
Show All 10 Lines |