Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Line(s) | |||||
256 | void Platform::touchUp(qint32 id, quint32 time) | 256 | void Platform::touchUp(qint32 id, quint32 time) | ||
257 | { | 257 | { | ||
258 | if (!input()) { | 258 | if (!input()) { | ||
259 | return; | 259 | return; | ||
260 | } | 260 | } | ||
261 | input()->processTouchUp(id, time); | 261 | input()->processTouchUp(id, time); | ||
262 | } | 262 | } | ||
263 | 263 | | |||
264 | void Platform::processSwipeGestureBegin(int fingerCount, quint32 time) | ||||
265 | { | ||||
266 | if (!input()) { | ||||
267 | return; | ||||
268 | } | ||||
269 | input()->pointer()->processSwipeGestureBegin(fingerCount, time); | ||||
270 | } | ||||
271 | | ||||
272 | void Platform::processSwipeGestureUpdate(const QSizeF &delta, quint32 time) | ||||
273 | { | ||||
274 | if (!input()) { | ||||
275 | return; | ||||
276 | } | ||||
277 | input()->pointer()->processSwipeGestureUpdate(delta, time); | ||||
278 | } | ||||
279 | | ||||
280 | void Platform::processSwipeGestureEnd(quint32 time) | ||||
281 | { | ||||
282 | if (!input()) { | ||||
283 | return; | ||||
284 | } | ||||
285 | input()->pointer()->processSwipeGestureEnd(time); | ||||
286 | } | ||||
287 | | ||||
288 | void Platform::processSwipeGestureCancelled(quint32 time) | ||||
289 | { | ||||
290 | if (!input()) { | ||||
291 | return; | ||||
292 | } | ||||
293 | input()->pointer()->processSwipeGestureCancelled(time); | ||||
294 | } | ||||
295 | | ||||
296 | void Platform::processPinchGestureBegin(int fingerCount, quint32 time) | ||||
297 | { | ||||
298 | if (!input()) { | ||||
299 | return; | ||||
300 | } | ||||
301 | input()->pointer()->processPinchGestureBegin(fingerCount, time); | ||||
302 | } | ||||
303 | | ||||
304 | void Platform::processPinchGestureUpdate(qreal scale, qreal angleDelta, const QSizeF &delta, quint32 time) | ||||
305 | { | ||||
306 | if (!input()) { | ||||
307 | return; | ||||
308 | } | ||||
309 | input()->pointer()->processPinchGestureUpdate(scale, angleDelta, delta, time); | ||||
310 | } | ||||
311 | | ||||
312 | void Platform::processPinchGestureEnd(quint32 time) | ||||
313 | { | ||||
314 | if (!input()) { | ||||
315 | return; | ||||
316 | } | ||||
317 | input()->pointer()->processPinchGestureEnd(time); | ||||
318 | } | ||||
319 | | ||||
320 | void Platform::processPinchGestureCancelled(quint32 time) | ||||
321 | { | ||||
322 | if (!input()) { | ||||
323 | return; | ||||
324 | } | ||||
325 | input()->pointer()->processPinchGestureCancelled(time); | ||||
326 | } | ||||
327 | | ||||
264 | void Platform::repaint(const QRect &rect) | 328 | void Platform::repaint(const QRect &rect) | ||
265 | { | 329 | { | ||
266 | if (!Compositor::self()) { | 330 | if (!Compositor::self()) { | ||
267 | return; | 331 | return; | ||
268 | } | 332 | } | ||
269 | Compositor::self()->addRepaint(rect); | 333 | Compositor::self()->addRepaint(rect); | ||
270 | } | 334 | } | ||
271 | 335 | | |||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |