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 | int softwareRotationAngle() const { return m_softwareRotationAngle; } | ||||
zzagUnsubmitted Done zzag: ```lang=cpp
int softwareRotationAngle() const {
return m_softwareRotationAngle;
}
``` | |||||
91 | | ||||
90 | Q_SIGNALS: | 92 | Q_SIGNALS: | ||
91 | void dpmsChanged(); | 93 | void dpmsChanged(); | ||
92 | 94 | | |||
93 | private: | 95 | private: | ||
94 | friend class DrmBackend; | 96 | friend class DrmBackend; | ||
95 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | 97 | 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. | 98 | // and save the connector ids in the DrmCrtc instance. | ||
97 | DrmOutput(DrmBackend *backend); | 99 | DrmOutput(DrmBackend *backend); | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 153 | struct { | |||
155 | QPoint globalPos; | 157 | QPoint globalPos; | ||
156 | bool valid = false; | 158 | bool valid = false; | ||
157 | } m_lastWorkingState; | 159 | } m_lastWorkingState; | ||
158 | DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr}; | 160 | DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr}; | ||
159 | int m_cursorIndex = 0; | 161 | int m_cursorIndex = 0; | ||
160 | bool m_hasNewCursor = false; | 162 | bool m_hasNewCursor = false; | ||
161 | bool m_internal = false; | 163 | bool m_internal = false; | ||
162 | bool m_deleted = false; | 164 | bool m_deleted = false; | ||
165 | int m_softwareRotationAngle = 0; | ||||
163 | }; | 166 | }; | ||
164 | 167 | | |||
165 | } | 168 | } | ||
166 | 169 | | |||
167 | Q_DECLARE_METATYPE(KWin::DrmOutput*) | 170 | Q_DECLARE_METATYPE(KWin::DrmOutput*) | ||
168 | 171 | | |||
169 | #endif | 172 | #endif | ||
170 | 173 | |