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 38 Lines | 174 | virtual void updateMode(int modeIndex) { | |||
166 | Q_UNUSED(modeIndex); | 175 | Q_UNUSED(modeIndex); | ||
167 | } | 176 | } | ||
168 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 177 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
169 | Q_UNUSED(transform); | 178 | Q_UNUSED(transform); | ||
170 | } | 179 | } | ||
171 | 180 | | |||
172 | void setWaylandMode(const QSize &size, int refreshRate); | 181 | void setWaylandMode(const QSize &size, int refreshRate); | ||
173 | 182 | | |||
174 | QSize orientateSize(const QSize &size) const; | | |||
175 | | ||||
176 | private: | 183 | private: | ||
177 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 184 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
178 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 185 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
179 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 186 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
180 | 187 | | |||
181 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 188 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
182 | 189 | | |||
183 | QPoint m_globalPos; | 190 | QPoint m_globalPos; | ||
Show All 10 Lines |