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 | /** | ||||
121 | * @returns the angle to rotate the display to fit the output | ||||
zzagUnsubmitted Done zzag: ```lang=cpp
/**
* Returns ...
**/
virtual int softwareRotationAngle() const {
return 0;
}… | |||||
122 | **/ | ||||
123 | virtual int softwareRotationAngle() const { return 0; } | ||||
124 | | ||||
125 | QSize orientateSize(const QSize &size) const; | ||||
126 | | ||||
120 | Q_SIGNALS: | 127 | Q_SIGNALS: | ||
121 | void modeChanged(); | 128 | void modeChanged(); | ||
122 | 129 | | |||
123 | protected: | 130 | protected: | ||
124 | void initWaylandOutput(); | 131 | void initWaylandOutput(); | ||
125 | void initWaylandOutputDevice(const QString &model, | 132 | void initWaylandOutputDevice(const QString &model, | ||
126 | const QString &manufacturer, | 133 | const QString &manufacturer, | ||
127 | const QByteArray &uuid, | 134 | const QByteArray &uuid, | ||
Show All 38 Lines | 172 | virtual void updateMode(int modeIndex) { | |||
166 | Q_UNUSED(modeIndex); | 173 | Q_UNUSED(modeIndex); | ||
167 | } | 174 | } | ||
168 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 175 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
169 | Q_UNUSED(transform); | 176 | Q_UNUSED(transform); | ||
170 | } | 177 | } | ||
171 | 178 | | |||
172 | void setWaylandMode(const QSize &size, int refreshRate); | 179 | void setWaylandMode(const QSize &size, int refreshRate); | ||
173 | 180 | | |||
174 | QSize orientateSize(const QSize &size) const; | | |||
175 | | ||||
176 | private: | 181 | private: | ||
177 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 182 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
178 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 183 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
179 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 184 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
180 | 185 | | |||
181 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 186 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
182 | 187 | | |||
183 | QPoint m_globalPos; | 188 | QPoint m_globalPos; | ||
Show All 10 Lines |