<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qwaylandtouch.cpp --> <title>QWaylandTouch Class | Qt Wayland Compositor 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtwaylandcompositor-index.html">Qt Wayland Compositor</a></td><td ><a href="qtwaylandcompositor-module.html">C++ Classes</a></td><td >QWaylandTouch</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtwaylandcompositor-index.html">Qt 5.12.6 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#static-public-members">Static Public Members</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QWaylandTouch Class</h1> <!-- $$$QWaylandTouch-brief --> <p>The <a href="qwaylandtouch.html">QWaylandTouch</a> class provides access to a touch device. <a href="#details">More...</a></p> <!-- @@@QWaylandTouch --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QWaylandTouch></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += waylandcompositor</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.8</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> QWaylandObject</td></tr></table></div><ul> <li><a href="qwaylandtouch-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#QWaylandTouch">QWaylandTouch</a></b>(QWaylandSeat *<i>seat</i>, QObject *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandCompositor *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#compositor">compositor</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandSeat *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#seat">seat</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#sendCancelEvent">sendCancelEvent</a></b>(QWaylandClient *<i>client</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#sendFrameEvent">sendFrameEvent</a></b>(QWaylandClient *<i>client</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#sendFullTouchEvent">sendFullTouchEvent</a></b>(QWaylandSurface *<i>surface</i>, QTouchEvent *<i>event</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual uint </td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#sendTouchPointEvent">sendTouchPointEvent</a></b>(QWaylandSurface *<i>surface</i>, int <i>id</i>, const QPointF &<i>position</i>, Qt::TouchPointState <i>state</i>)</td></tr> </table></div> <a name="static-public-members"></a> <h2 id="static-public-members">Static Public Members</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qwaylandtouch.html#staticMetaObject-var">staticMetaObject</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QWaylandTouch-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qwaylandtouch.html">QWaylandTouch</a> class provides access to a touch device.</p> <p>This class provides access to the touch device in a <a href="qwaylandseat.html">QWaylandSeat</a>. It corresponds to the Wayland interface wl_touch.</p> </div> <!-- @@@QWaylandTouch --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QWaylandTouch[overload1]$$$QWaylandTouchQWaylandSeat*QObject* --> <h3 class="fn" id="QWaylandTouch"><a name="QWaylandTouch"></a>QWaylandTouch::<span class="name">QWaylandTouch</span>(<span class="type"><a href="qwaylandseat.html">QWaylandSeat</a></span> *<i>seat</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3> <p>Constructs a <a href="qwaylandtouch.html">QWaylandTouch</a> for the <i>seat</i> and with the given <i>parent</i>.</p> <!-- @@@QWaylandTouch --> <!-- $$$compositor[overload1]$$$compositor --> <h3 class="fn" id="compositor"><a name="compositor"></a><span class="type"><a href="qwaylandcompositor.html">QWaylandCompositor</a></span> *QWaylandTouch::<span class="name">compositor</span>() const</h3> <p>Returns the compositor for this <a href="qwaylandtouch.html">QWaylandTouch</a>.</p> <!-- @@@compositor --> <!-- $$$seat[overload1]$$$seat --> <h3 class="fn" id="seat"><a name="seat"></a><span class="type"><a href="qwaylandseat.html">QWaylandSeat</a></span> *QWaylandTouch::<span class="name">seat</span>() const</h3> <p>Returns the input device for this <a href="qwaylandtouch.html">QWaylandTouch</a>.</p> <!-- @@@seat --> <!-- $$$sendCancelEvent[overload1]$$$sendCancelEventQWaylandClient* --> <h3 class="fn" id="sendCancelEvent"><a name="sendCancelEvent"></a><code>[virtual] </code><span class="type">void</span> QWaylandTouch::<span class="name">sendCancelEvent</span>(<span class="type"><a href="qwaylandclient.html">QWaylandClient</a></span> *<i>client</i>)</h3> <p>Sends a touch cancel event to the touch device of a <i>client</i>.</p> <!-- @@@sendCancelEvent --> <!-- $$$sendFrameEvent[overload1]$$$sendFrameEventQWaylandClient* --> <h3 class="fn" id="sendFrameEvent"><a name="sendFrameEvent"></a><code>[virtual] </code><span class="type">void</span> QWaylandTouch::<span class="name">sendFrameEvent</span>(<span class="type"><a href="qwaylandclient.html">QWaylandClient</a></span> *<i>client</i>)</h3> <p>Sends a touch frame event to the touch device of a <i>client</i>. This indicates the end of a contact point list.</p> <!-- @@@sendFrameEvent --> <!-- $$$sendFullTouchEvent[overload1]$$$sendFullTouchEventQWaylandSurface*QTouchEvent* --> <h3 class="fn" id="sendFullTouchEvent"><a name="sendFullTouchEvent"></a><code>[virtual] </code><span class="type">void</span> QWaylandTouch::<span class="name">sendFullTouchEvent</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>, <span class="type">QTouchEvent</span> *<i>event</i>)</h3> <p>Sends all touch points in <i>event</i> to the specified <i>surface</i>, followed by a touch frame event.</p> <p><b>See also </b><a href="qwaylandtouch.html#sendTouchPointEvent">sendTouchPointEvent</a>() and <a href="qwaylandtouch.html#sendFrameEvent">sendFrameEvent</a>().</p> <!-- @@@sendFullTouchEvent --> <!-- $$$sendTouchPointEvent[overload1]$$$sendTouchPointEventQWaylandSurface*intconstQPointF&Qt::TouchPointState --> <h3 class="fn" id="sendTouchPointEvent"><a name="sendTouchPointEvent"></a><code>[virtual] </code><span class="type">uint</span> QWaylandTouch::<span class="name">sendTouchPointEvent</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>, <span class="type">int</span> <i>id</i>, const <span class="type">QPointF</span> &<i>position</i>, <span class="type">Qt::TouchPointState</span> <i>state</i>)</h3> <p>Sends a touch point event to the touch device of <i>surface</i> with the given <i>id</i>, <i>position</i>, and <i>state</i>.</p> <p>Returns the serial of the down or up event if sent, otherwise 0.</p> <!-- @@@sendTouchPointEvent --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>