Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 62 | public: | |||
---|---|---|---|---|---|
92 | bool isConstrained() const { | 92 | bool isConstrained() const { | ||
93 | return m_confined || m_locked; | 93 | return m_confined || m_locked; | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | bool focusUpdatesBlocked() override; | 96 | bool focusUpdatesBlocked() override; | ||
97 | 97 | | |||
98 | /** | 98 | /** | ||
99 | * @internal | 99 | * @internal | ||
100 | */ | 100 | **/ | ||
101 | void processMotion(const QPointF &pos, uint32_t time, LibInput::Device *device = nullptr); | 101 | void processMotion(const QPointF &pos, uint32_t time, LibInput::Device *device = nullptr); | ||
102 | /** | 102 | /** | ||
103 | * @internal | 103 | * @internal | ||
104 | **/ | 104 | **/ | ||
105 | void processMotion(const QPointF &pos, const QSizeF &delta, const QSizeF &deltaNonAccelerated, uint32_t time, quint64 timeUsec, LibInput::Device *device); | 105 | void processMotion(const QPointF &pos, const QSizeF &delta, const QSizeF &deltaNonAccelerated, uint32_t time, quint64 timeUsec, LibInput::Device *device); | ||
106 | /** | 106 | /** | ||
107 | * @internal | 107 | * @internal | ||
108 | */ | 108 | **/ | ||
109 | void processButton(uint32_t button, InputRedirection::PointerButtonState state, uint32_t time, LibInput::Device *device = nullptr); | 109 | void processButton(uint32_t button, InputRedirection::PointerButtonState state, uint32_t time, LibInput::Device *device = nullptr); | ||
110 | /** | 110 | /** | ||
111 | * @internal | 111 | * @internal | ||
112 | */ | 112 | **/ | ||
113 | void processAxis(InputRedirection::PointerAxis axis, qreal delta, uint32_t time, LibInput::Device *device = nullptr); | 113 | void processAxis(InputRedirection::PointerAxis axis, qreal delta, uint32_t time, LibInput::Device *device = nullptr); | ||
114 | /** | 114 | /** | ||
115 | * @internal | 115 | * @internal | ||
116 | */ | 116 | **/ | ||
117 | void processSwipeGestureBegin(int fingerCount, quint32 time, KWin::LibInput::Device *device = nullptr); | 117 | void processSwipeGestureBegin(int fingerCount, quint32 time, KWin::LibInput::Device *device = nullptr); | ||
118 | /** | 118 | /** | ||
119 | * @internal | 119 | * @internal | ||
120 | */ | 120 | **/ | ||
121 | void processSwipeGestureUpdate(const QSizeF &delta, quint32 time, KWin::LibInput::Device *device = nullptr); | 121 | void processSwipeGestureUpdate(const QSizeF &delta, quint32 time, KWin::LibInput::Device *device = nullptr); | ||
122 | /** | 122 | /** | ||
123 | * @internal | 123 | * @internal | ||
124 | */ | 124 | **/ | ||
125 | void processSwipeGestureEnd(quint32 time, KWin::LibInput::Device *device = nullptr); | 125 | void processSwipeGestureEnd(quint32 time, KWin::LibInput::Device *device = nullptr); | ||
126 | /** | 126 | /** | ||
127 | * @internal | 127 | * @internal | ||
128 | */ | 128 | **/ | ||
129 | void processSwipeGestureCancelled(quint32 time, KWin::LibInput::Device *device = nullptr); | 129 | void processSwipeGestureCancelled(quint32 time, KWin::LibInput::Device *device = nullptr); | ||
130 | /** | 130 | /** | ||
131 | * @internal | 131 | * @internal | ||
132 | */ | 132 | **/ | ||
133 | void processPinchGestureBegin(int fingerCount, quint32 time, KWin::LibInput::Device *device = nullptr); | 133 | void processPinchGestureBegin(int fingerCount, quint32 time, KWin::LibInput::Device *device = nullptr); | ||
134 | /** | 134 | /** | ||
135 | * @internal | 135 | * @internal | ||
136 | */ | 136 | **/ | ||
137 | void processPinchGestureUpdate(qreal scale, qreal angleDelta, const QSizeF &delta, quint32 time, KWin::LibInput::Device *device = nullptr); | 137 | void processPinchGestureUpdate(qreal scale, qreal angleDelta, const QSizeF &delta, quint32 time, KWin::LibInput::Device *device = nullptr); | ||
138 | /** | 138 | /** | ||
139 | * @internal | 139 | * @internal | ||
140 | */ | 140 | **/ | ||
141 | void processPinchGestureEnd(quint32 time, KWin::LibInput::Device *device = nullptr); | 141 | void processPinchGestureEnd(quint32 time, KWin::LibInput::Device *device = nullptr); | ||
142 | /** | 142 | /** | ||
143 | * @internal | 143 | * @internal | ||
144 | */ | 144 | **/ | ||
145 | void processPinchGestureCancelled(quint32 time, KWin::LibInput::Device *device = nullptr); | 145 | void processPinchGestureCancelled(quint32 time, KWin::LibInput::Device *device = nullptr); | ||
146 | 146 | | |||
147 | private: | 147 | private: | ||
148 | void cleanupInternalWindow(QWindow *old, QWindow *now) override; | 148 | void cleanupInternalWindow(QWindow *old, QWindow *now) override; | ||
149 | void cleanupDecoration(Decoration::DecoratedClientImpl *old, Decoration::DecoratedClientImpl *now) override; | 149 | void cleanupDecoration(Decoration::DecoratedClientImpl *old, Decoration::DecoratedClientImpl *now) override; | ||
150 | 150 | | |||
151 | void focusUpdate(Toplevel *focusOld, Toplevel *focusNow) override; | 151 | void focusUpdate(Toplevel *focusOld, Toplevel *focusNow) override; | ||
152 | 152 | | |||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |