Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
82 | QByteArray uuid() const { | 82 | QByteArray uuid() const { | ||
83 | return m_uuid; | 83 | return m_uuid; | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | bool initCursor(const QSize &cursorSize); | 86 | bool initCursor(const QSize &cursorSize); | ||
87 | 87 | | |||
88 | bool supportsTransformations() const; | 88 | bool supportsTransformations() const; | ||
89 | 89 | | |||
90 | ///returns the angle to rotate the display to fit the output | ||||
zzagUnsubmitted Done zzag: ```lang=cpp
int softwareRotationAngle() const {
return m_softwareRotationAngle;
}
``` | |||||
91 | int softwareRotationAngle() const { return m_softwareRotationAngle; } | ||||
92 | | ||||
90 | Q_SIGNALS: | 93 | Q_SIGNALS: | ||
91 | void dpmsChanged(); | 94 | void dpmsChanged(); | ||
92 | 95 | | |||
93 | private: | 96 | private: | ||
94 | friend class DrmBackend; | 97 | friend class DrmBackend; | ||
95 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | 98 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | ||
96 | // and save the connector ids in the DrmCrtc instance. | 99 | // and save the connector ids in the DrmCrtc instance. | ||
97 | DrmOutput(DrmBackend *backend); | 100 | DrmOutput(DrmBackend *backend); | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 154 | struct { | |||
155 | QPoint globalPos; | 158 | QPoint globalPos; | ||
156 | bool valid = false; | 159 | bool valid = false; | ||
157 | } m_lastWorkingState; | 160 | } m_lastWorkingState; | ||
158 | DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr}; | 161 | DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr}; | ||
159 | int m_cursorIndex = 0; | 162 | int m_cursorIndex = 0; | ||
160 | bool m_hasNewCursor = false; | 163 | bool m_hasNewCursor = false; | ||
161 | bool m_internal = false; | 164 | bool m_internal = false; | ||
162 | bool m_deleted = false; | 165 | bool m_deleted = false; | ||
166 | int m_softwareRotationAngle = 0; | ||||
163 | }; | 167 | }; | ||
164 | 168 | | |||
165 | } | 169 | } | ||
166 | 170 | | |||
167 | Q_DECLARE_METATYPE(KWin::DrmOutput*) | 171 | Q_DECLARE_METATYPE(KWin::DrmOutput*) | ||
168 | 172 | | |||
169 | #endif | 173 | #endif | ||
170 | 174 | |