Changeset View
Changeset View
Standalone View
Standalone View
abstract_output.h
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 102 | public: | |||
---|---|---|---|---|---|
118 | /** | 118 | /** | ||
119 | * Enable or disable the output. | 119 | * Enable or disable the output. | ||
120 | * | 120 | * | ||
121 | * Default implementation does nothing | 121 | * Default implementation does nothing | ||
122 | */ | 122 | */ | ||
123 | virtual void setEnabled(bool enable); | 123 | virtual void setEnabled(bool enable); | ||
124 | 124 | | |||
125 | /** | 125 | /** | ||
126 | * This sets the changes and tests them against the specific output. | 126 | * This sets the changes and tests them against the specific output. | ||
zzagUnsubmitted Done zzag: ```lang=cpp
/**
* Returns ...
**/
virtual int softwareRotationAngle() const {
return 0;
}… | |||||
127 | * | 127 | * | ||
128 | * Default implementation does nothing | 128 | * Default implementation does nothing | ||
129 | */ | 129 | */ | ||
130 | virtual void applyChanges(const KWayland::Server::OutputChangeSet *changeSet); | 130 | virtual void applyChanges(const KWayland::Server::OutputChangeSet *changeSet); | ||
131 | 131 | | |||
132 | /** | 132 | /** | ||
133 | * Returns geometry of this output in device independent pixels. | 133 | * Returns geometry of this output in device independent pixels. | ||
134 | */ | 134 | */ | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
177 | 177 | | |||
178 | /** | 178 | /** | ||
179 | * Sets the gamma ramp of this output. | 179 | * Sets the gamma ramp of this output. | ||
180 | * | 180 | * | ||
181 | * Returns @c true if the gamma ramp was successfully set. | 181 | * Returns @c true if the gamma ramp was successfully set. | ||
182 | */ | 182 | */ | ||
183 | virtual bool setGammaRamp(const GammaRamp &gamma); | 183 | virtual bool setGammaRamp(const GammaRamp &gamma); | ||
184 | 184 | | |||
185 | /** | ||||
186 | * Returns the angle to rotate the display to fit the output | ||||
187 | */ | ||||
188 | virtual int softwareRotationAngle() const { | ||||
189 | return 0; | ||||
190 | } | ||||
185 | private: | 191 | private: | ||
186 | Q_DISABLE_COPY(AbstractOutput) | 192 | Q_DISABLE_COPY(AbstractOutput) | ||
187 | }; | 193 | }; | ||
188 | 194 | | |||
189 | } // namespace KWin | 195 | } // namespace KWin | ||
190 | 196 | | |||
191 | #endif | 197 | #endif |