IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWaylandTouch Class

The QWaylandTouch class provides access to a touch device.

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWaylandTouch Class

  • Header: QWaylandTouch

  • Since: Qt 5.8

  • qmake: QT += waylandcompositor

Detailed Description

This class provides access to the touch device in a QWaylandSeat. It corresponds to the Wayland interface wl_touch.

Member Function Documentation

 

QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)

Constructs a QWaylandTouch for the seat and with the given parent.

QWaylandCompositor *QWaylandTouch::compositor() const

Returns the compositor for this QWaylandTouch.

QWaylandSeat *QWaylandTouch::seat() const

Returns the input device for this QWaylandTouch.

[virtual] void QWaylandTouch::sendCancelEvent(QWaylandClient *client)

Sends a touch cancel event to the touch device of a client.

[virtual] void QWaylandTouch::sendFrameEvent(QWaylandClient *client)

Sends a touch frame event to the touch device of a client. This indicates the end of a contact point list.

[virtual] void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)

Sends all touch points in event to the specified surface, followed by a touch frame event.

See Also

[virtual] uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)

Sends a touch point event to the touch device of surface with the given id, position, and state.

Returns the serial of the down or up event if sent, otherwise 0.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+