Changeset View
Changeset View
Standalone View
Standalone View
src/client/outputdevice.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 84 | enum class Transform { | |||
---|---|---|---|---|---|
90 | Flipped90, | 90 | Flipped90, | ||
91 | Flipped180, | 91 | Flipped180, | ||
92 | Flipped270 | 92 | Flipped270 | ||
93 | }; | 93 | }; | ||
94 | enum class Enablement { | 94 | enum class Enablement { | ||
95 | Disabled = 0, | 95 | Disabled = 0, | ||
96 | Enabled = 1 | 96 | Enabled = 1 | ||
97 | }; | 97 | }; | ||
98 | | ||||
romangg: rm | |||||
98 | struct Mode { | 99 | struct Mode { | ||
99 | enum class Flag { | 100 | enum class Flag { | ||
100 | None = 0, | 101 | None = 0, | ||
101 | Current = 1 << 0, | 102 | Current = 1 << 0, | ||
102 | Preferred = 1 << 1 | 103 | Preferred = 1 << 1 | ||
103 | }; | 104 | }; | ||
104 | Q_DECLARE_FLAGS(Flags, Flag) | 105 | Q_DECLARE_FLAGS(Flags, Flag) | ||
105 | /** | 106 | /** | ||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | |||||
175 | * Textual representation of EISA identifier. | 176 | * Textual representation of EISA identifier. | ||
176 | */ | 177 | */ | ||
177 | QString eisaId() const; | 178 | QString eisaId() const; | ||
178 | /** | 179 | /** | ||
179 | * Size in the current mode. | 180 | * Size in the current mode. | ||
180 | **/ | 181 | **/ | ||
181 | QSize pixelSize() const; | 182 | QSize pixelSize() const; | ||
182 | /** | 183 | /** | ||
184 | * Size in compositor space. | ||||
185 | **/ | ||||
186 | QSizeF logicalSize() const; | ||||
187 | | ||||
188 | // TODO KF6: in geometry() replace pixel size with the logical size | ||||
189 | /** | ||||
183 | * The geometry of this OutputDevice in pixels. | 190 | * The geometry of this OutputDevice in pixels. | ||
184 | * Convenient for QRect(globalPosition(), pixelSize()). | 191 | * Convenient for QRect(globalPosition(), pixelSize()). | ||
185 | * @see globalPosition | 192 | * @see globalPosition | ||
186 | * @see pixelSize | 193 | * @see pixelSize | ||
187 | **/ | 194 | **/ | ||
188 | QRect geometry() const; | 195 | QRect geometry() const; | ||
189 | /** | 196 | /** | ||
190 | * Refresh rate in mHz of the current mode. | 197 | * Refresh rate in mHz of the current mode. | ||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |
rm