The QWaylandTouch class provides access to a touch device. 更多...
| 头: | #include <QWaylandTouch> | 
| qmake: | QT += waylandcompositor | 
| Since: | Qt 5.8 | 
| 继承: | QWaylandObject | 
| QWaylandTouch (QWaylandSeat * seat , QObject * parent = nullptr) | |
| QWaylandCompositor * | compositor () const | 
| QWaylandSeat * | seat () const | 
| virtual void | sendCancelEvent (QWaylandClient * client ) | 
| virtual void | sendFrameEvent (QWaylandClient * client ) | 
| virtual void | sendFullTouchEvent (QWaylandSurface * surface , QTouchEvent * event ) | 
| virtual uint | sendTouchPointEvent (QWaylandSurface * surface , int id , const QPointF & position , Qt::TouchPointState state ) | 
| const QMetaObject | staticMetaObject | 
The QWaylandTouch class provides access to a touch device.
This class provides access to the touch device in a QWaylandSeat . It corresponds to the Wayland interface wl_touch.
构造 QWaylandTouch 为 seat and with the given parent .
Returns the compositor for this QWaylandTouch .
Returns the input device for this QWaylandTouch .
[虚拟]
						
						
							void
						
						QWaylandTouch::
						
							sendCancelEvent
						
						(
						
							
								QWaylandClient
							
						
						*
						
							client
						
						)
						
					Sends a touch cancel event to the touch device of a client .
[虚拟]
						
						
							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.
[虚拟]
						
						
							void
						
						QWaylandTouch::
						
							sendFullTouchEvent
						
						(
						
							
								QWaylandSurface
							
						
						*
						
							surface
						
						,
						
							
								QTouchEvent
							
						
						*
						event
						)
						
					Sends all touch points in event 到指定 surface , followed by a touch frame event.
另请参阅 sendTouchPointEvent () 和 sendFrameEvent ().
[虚拟]
						
						
							
								uint
							
						
						QWaylandTouch::
						
							sendTouchPointEvent
						
						(
						
							
								QWaylandSurface
							
						
						*
						
							surface
						
						,
						
							int
						
						
							id
						
						, const
						
							
								QPointF
							
						
						&
						position
						,
						
							
								Qt::TouchPointState
							
						
						
							state
						
						)
						
					Sends a touch point event to the touch device of surface 采用给定 id , position ,和 state .
Returns the serial of the down or up event if sent, otherwise 0.