Changeset View
Changeset View
Standalone View
Standalone View
abstract_output.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
91 | * This sets the changes and tests them against the specific output | 91 | * This sets the changes and tests them against the specific output | ||
92 | */ | 92 | */ | ||
93 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | 93 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | ||
94 | 94 | | |||
95 | QPointer<KWayland::Server::OutputInterface> waylandOutput() const { | 95 | QPointer<KWayland::Server::OutputInterface> waylandOutput() const { | ||
96 | return m_waylandOutput; | 96 | return m_waylandOutput; | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | /** | ||||
100 | * Enable or disable the output. | ||||
101 | * This differs from updateDpms as it also | ||||
102 | * removes the wl_output. | ||||
103 | * The default is on. | ||||
104 | */ | ||||
105 | void setEnabled(bool enable); | ||||
106 | | ||||
99 | virtual int getGammaRampSize() const { | 107 | virtual int getGammaRampSize() const { | ||
100 | return 0; | 108 | return 0; | ||
101 | } | 109 | } | ||
102 | virtual bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) { | 110 | virtual bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) { | ||
103 | Q_UNUSED(gamma); | 111 | Q_UNUSED(gamma); | ||
104 | return false; | 112 | return false; | ||
105 | } | 113 | } | ||
106 | 114 | | |||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 157 | virtual void updateDpms(KWayland::Server::OutputInterface::DpmsMode mode) { | |||
150 | Q_UNUSED(mode); | 158 | Q_UNUSED(mode); | ||
151 | } | 159 | } | ||
152 | virtual void updateMode(int modeIndex) { | 160 | virtual void updateMode(int modeIndex) { | ||
153 | Q_UNUSED(modeIndex); | 161 | Q_UNUSED(modeIndex); | ||
154 | } | 162 | } | ||
155 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | 163 | virtual void transform(KWayland::Server::OutputDeviceInterface::Transform transform) { | ||
156 | Q_UNUSED(transform); | 164 | Q_UNUSED(transform); | ||
157 | } | 165 | } | ||
166 | | ||||
158 | void setWaylandMode(const QSize &size, int refreshRate); | 167 | void setWaylandMode(const QSize &size, int refreshRate); | ||
159 | 168 | | |||
160 | private: | 169 | private: | ||
161 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 170 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
162 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 171 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
163 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 172 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
164 | 173 | | |||
165 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 174 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
Show All 12 Lines |