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 { | ||||
124 | return 0; | ||||
125 | } | ||||
126 | | ||||
127 | QSize orientateSize(const QSize &size) const; | ||||
128 | | ||||
120 | Q_SIGNALS: | 129 | Q_SIGNALS: | ||
121 | void modeChanged(); | 130 | void modeChanged(); | ||
122 | 131 | | |||
123 | protected: | 132 | protected: | ||
124 | void initWaylandOutput(); | 133 | void initWaylandOutput(); | ||
125 | void initWaylandOutputDevice(const QString &model, | 134 | void initWaylandOutputDevice(const QString &model, | ||
126 | const QString &manufacturer, | 135 | const QString &manufacturer, | ||
127 | const QByteArray &uuid, | 136 | const QByteArray &uuid, | ||
Show All 35 Lines | 171 | virtual void updateMode(int modeIndex) { | |||
163 | Q_UNUSED(modeIndex); | 172 | Q_UNUSED(modeIndex); | ||
164 | } | 173 | } | ||
165 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 174 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
166 | Q_UNUSED(transform); | 175 | Q_UNUSED(transform); | ||
167 | } | 176 | } | ||
168 | 177 | | |||
169 | void setWaylandMode(const QSize &size, int refreshRate); | 178 | void setWaylandMode(const QSize &size, int refreshRate); | ||
170 | 179 | | |||
171 | QSize orientateSize(const QSize &size) const; | | |||
172 | | ||||
173 | private: | 180 | private: | ||
174 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 181 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
175 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 182 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
176 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 183 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
177 | 184 | | |||
178 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 185 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
179 | 186 | | |||
180 | QPoint m_globalPos; | 187 | QPoint m_globalPos; | ||
Show All 10 Lines |