Changeset View
Changeset View
Standalone View
Standalone View
abstract_output.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 94 | public: | |||
---|---|---|---|---|---|
106 | virtual QRect geometry() const = 0; | 106 | virtual QRect geometry() const = 0; | ||
107 | 107 | | |||
108 | /** | 108 | /** | ||
109 | * Returns the approximate vertical refresh rate of this output, in mHz. | 109 | * Returns the approximate vertical refresh rate of this output, in mHz. | ||
110 | **/ | 110 | **/ | ||
111 | virtual int refreshRate() const = 0; | 111 | virtual int refreshRate() const = 0; | ||
112 | 112 | | |||
113 | /** | 113 | /** | ||
114 | * Returns whether this output is connected through an internal connector, | 114 | * Returns whether this output is connected through an internal connector, | ||
zzagUnsubmitted Done zzag: ```lang=cpp
/**
* Returns ...
**/
virtual int softwareRotationAngle() const {
return 0;
}… | |||||
115 | * e.g. LVDS, or eDP. | 115 | * e.g. LVDS, or eDP. | ||
116 | * | 116 | * | ||
117 | * Default implementation returns @c false. | 117 | * Default implementation returns @c false. | ||
118 | **/ | 118 | **/ | ||
119 | virtual bool isInternal() const; | 119 | virtual bool isInternal() const; | ||
120 | 120 | | |||
121 | /** | 121 | /** | ||
122 | * Returns the ratio between physical pixels and logical pixels. | 122 | * Returns the ratio between physical pixels and logical pixels. | ||
Show All 25 Lines | |||||
148 | 148 | | |||
149 | /** | 149 | /** | ||
150 | * Sets the gamma ramp of this output. | 150 | * Sets the gamma ramp of this output. | ||
151 | * | 151 | * | ||
152 | * Returns @c true if the gamma ramp was successfully set. | 152 | * Returns @c true if the gamma ramp was successfully set. | ||
153 | **/ | 153 | **/ | ||
154 | virtual bool setGammaRamp(const GammaRamp &gamma); | 154 | virtual bool setGammaRamp(const GammaRamp &gamma); | ||
155 | 155 | | |||
156 | /** | ||||
157 | * @returns the angle to rotate the display to fit the output | ||||
158 | **/ | ||||
159 | virtual int softwareRotationAngle() const { | ||||
160 | return 0; | ||||
161 | } | ||||
162 | | ||||
163 | QSize orientateSize(const QSize &size) const; | ||||
164 | | ||||
156 | private: | 165 | private: | ||
157 | Q_DISABLE_COPY(AbstractOutput) | 166 | Q_DISABLE_COPY(AbstractOutput) | ||
158 | }; | 167 | }; | ||
159 | 168 | | |||
160 | } // namespace KWin | 169 | } // namespace KWin | ||
161 | 170 | | |||
162 | #endif | 171 | #endif |