Changeset View
Changeset View
Standalone View
Standalone View
abstract_output.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
112 | virtual int getGammaRampSize() const { | 112 | virtual int getGammaRampSize() const { | ||
113 | return 0; | 113 | return 0; | ||
114 | } | 114 | } | ||
115 | virtual bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) { | 115 | virtual bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) { | ||
116 | Q_UNUSED(gamma); | 116 | Q_UNUSED(gamma); | ||
117 | return false; | 117 | return false; | ||
118 | } | 118 | } | ||
119 | 119 | | |||
120 | QSize orientateSize(const QSize &size) const; | ||||
121 | | ||||
zzagUnsubmitted Done zzag: ```lang=cpp
/**
* Returns ...
**/
virtual int softwareRotationAngle() const {
return 0;
}… | |||||
120 | Q_SIGNALS: | 122 | Q_SIGNALS: | ||
121 | void modeChanged(); | 123 | void modeChanged(); | ||
122 | 124 | | |||
123 | protected: | 125 | protected: | ||
124 | void initWaylandOutput(); | 126 | void initWaylandOutput(); | ||
125 | void initWaylandOutputDevice(const QString &model, | 127 | void initWaylandOutputDevice(const QString &model, | ||
126 | const QString &manufacturer, | 128 | const QString &manufacturer, | ||
127 | const QByteArray &uuid, | 129 | const QByteArray &uuid, | ||
Show All 38 Lines | 167 | virtual void updateMode(int modeIndex) { | |||
166 | Q_UNUSED(modeIndex); | 168 | Q_UNUSED(modeIndex); | ||
167 | } | 169 | } | ||
168 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 170 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
169 | Q_UNUSED(transform); | 171 | Q_UNUSED(transform); | ||
170 | } | 172 | } | ||
171 | 173 | | |||
172 | void setWaylandMode(const QSize &size, int refreshRate); | 174 | void setWaylandMode(const QSize &size, int refreshRate); | ||
173 | 175 | | |||
174 | QSize orientateSize(const QSize &size) const; | | |||
175 | | ||||
176 | private: | 176 | private: | ||
177 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 177 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
178 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 178 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
179 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 179 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
180 | 180 | | |||
181 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 181 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
182 | 182 | | |||
183 | QPoint m_globalPos; | 183 | QPoint m_globalPos; | ||
Show All 10 Lines |