Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
80 | QPoint cursorHotSpot() const; | 80 | QPoint cursorHotSpot() const; | ||
81 | void markCursorAsRendered(); | 81 | void markCursorAsRendered(); | ||
82 | void setEffectsOverrideCursor(Qt::CursorShape shape); | 82 | void setEffectsOverrideCursor(Qt::CursorShape shape); | ||
83 | void removeEffectsOverrideCursor(); | 83 | void removeEffectsOverrideCursor(); | ||
84 | void setWindowSelectionCursor(const QByteArray &shape); | 84 | void setWindowSelectionCursor(const QByteArray &shape); | ||
85 | void removeWindowSelectionCursor(); | 85 | void removeWindowSelectionCursor(); | ||
86 | 86 | | |||
87 | void updatePointerConstraints(); | 87 | void updatePointerConstraints(); | ||
88 | void breakPointerConstraints(); | | |||
89 | | ||||
90 | /* This is only used for ESC pressing */ | | |||
91 | void blockPointerConstraints() { | | |||
92 | m_blockConstraint = true; | | |||
93 | } | | |||
94 | 88 | | |||
95 | void setEnableConstraints(bool set); | 89 | void setEnableConstraints(bool set); | ||
96 | 90 | | |||
97 | bool isConstrained() const { | 91 | bool isConstrained() const { | ||
98 | return m_confined || m_locked; | 92 | return m_confined || m_locked; | ||
99 | } | 93 | } | ||
100 | 94 | | |||
101 | /** | 95 | /** | ||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 144 | private: | |||
169 | QMetaObject::Connection m_internalWindowConnection; | 163 | QMetaObject::Connection m_internalWindowConnection; | ||
170 | QMetaObject::Connection m_constraintsConnection; | 164 | QMetaObject::Connection m_constraintsConnection; | ||
171 | QMetaObject::Connection m_constraintsActivatedConnection; | 165 | QMetaObject::Connection m_constraintsActivatedConnection; | ||
172 | QMetaObject::Connection m_confinedPointerRegionConnection; | 166 | QMetaObject::Connection m_confinedPointerRegionConnection; | ||
173 | QMetaObject::Connection m_lockedPointerAboutToBeUnboundConnection; | 167 | QMetaObject::Connection m_lockedPointerAboutToBeUnboundConnection; | ||
174 | QMetaObject::Connection m_decorationGeometryConnection; | 168 | QMetaObject::Connection m_decorationGeometryConnection; | ||
175 | bool m_confined = false; | 169 | bool m_confined = false; | ||
176 | bool m_locked = false; | 170 | bool m_locked = false; | ||
177 | bool m_blockConstraint = false; | | |||
178 | bool m_enableConstraints = true; | 171 | bool m_enableConstraints = true; | ||
179 | }; | 172 | }; | ||
180 | 173 | | |||
181 | class CursorImage : public QObject | 174 | class CursorImage : public QObject | ||
182 | { | 175 | { | ||
183 | Q_OBJECT | 176 | Q_OBJECT | ||
184 | public: | 177 | public: | ||
185 | explicit CursorImage(PointerInputRedirection *parent = nullptr); | 178 | explicit CursorImage(PointerInputRedirection *parent = nullptr); | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |