<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qwaylandseat.cpp --> <title>WaylandSeat QML Type | 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="qtwayland-compositor-qmlmodule.html">QML Types</a></td><td >WaylandSeat QML Type</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="#methods">Methods</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">WaylandSeat QML Type</h1> <span class="subtitle"></span> <!-- $$$WaylandSeat-brief --> <p>Provides access to keyboard, mouse, and touch input. <a href="#details">More...</a></p> <!-- @@@WaylandSeat --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtWayland.Compositor 1.3</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.8</td></tr></table></div><ul> <li><a href="qml-qtwayland-compositor-waylandseat-members.html">List of all members, including inherited members</a></li> </ul> <a name="methods"></a> <h2 id="methods">Methods</h2> <ul> <li class="fn">void <b><b><a href="qml-qtwayland-compositor-waylandseat.html#sendKeyEvent-method">sendKeyEvent</a></b></b>(int <i>qtKey</i>, bool <i>pressed</i>)</li> <li class="fn">void <b><b><a href="qml-qtwayland-compositor-waylandseat.html#sendTouchCancelEvent-method">sendTouchCancelEvent</a></b></b>(WaylandClient <i>client</i>)</li> <li class="fn">void <b><b><a href="qml-qtwayland-compositor-waylandseat.html#sendTouchFrameEvent-method">sendTouchFrameEvent</a></b></b>(WaylandClient <i>client</i>)</li> <li class="fn">void <b><b><a href="qml-qtwayland-compositor-waylandseat.html#sendTouchPointMoved-method">sendTouchPointMoved</a></b></b>(WaylandSurface <i>surface</i>, int <i>id</i>, point <i>position</i>)</li> <li class="fn">uint <b><b><a href="qml-qtwayland-compositor-waylandseat.html#sendTouchPointPressed-method">sendTouchPointPressed</a></b></b>(WaylandSurface <i>surface</i>, int <i>id</i>, point <i>position</i>)</li> <li class="fn">void <b><b><a href="qml-qtwayland-compositor-waylandseat.html#sendTouchPointReleased-method">sendTouchPointReleased</a></b></b>(WaylandSurface <i>surface</i>, int <i>id</i>, point <i>position</i>)</li> </ul> <!-- $$$WaylandSeat-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>The <a href="qml-qtwayland-compositor-waylandseat.html">WaylandSeat</a> type provides access to different types of user input and maintains a keyboard focus and a mouse pointer. It corresponds to the wl_seat interface in the Wayland protocol.</p> <!-- @@@WaylandSeat --> <h2>Method Documentation</h2> <!-- $$$sendKeyEvent --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="sendKeyEvent-method"> <td class="tblQmlFuncNode"><p> <a name="sendKeyEvent-method"></a><span class="type">void</span> <span class="name">sendKeyEvent</span>(<span class="type">int</span> <i>qtKey</i>, <span class="type">bool</span> <i>pressed</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Sends a key press or release to the keyboard device.</p> <p>This method was introduced in Qt 5.12.</p> </div></div><!-- @@@sendKeyEvent --> <br/> <!-- $$$sendTouchCancelEvent --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="sendTouchCancelEvent-method"> <td class="tblQmlFuncNode"><p> <a name="sendTouchCancelEvent-method"></a><span class="type">void</span> <span class="name">sendTouchCancelEvent</span>(<span class="type"><a href="qml-qtwayland-compositor-waylandclient.html">WaylandClient</a></span> <i>client</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Sends a cancel event to the touch device of a <i>client</i>.</p> </div></div><!-- @@@sendTouchCancelEvent --> <br/> <!-- $$$sendTouchFrameEvent --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="sendTouchFrameEvent-method"> <td class="tblQmlFuncNode"><p> <a name="sendTouchFrameEvent-method"></a><span class="type">void</span> <span class="name">sendTouchFrameEvent</span>(<span class="type"><a href="qml-qtwayland-compositor-waylandclient.html">WaylandClient</a></span> <i>client</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Sends a frame event to the touch device of a <i>client</i> to indicate the end of a series of touch up, down, and motion events.</p> </div></div><!-- @@@sendTouchFrameEvent --> <br/> <!-- $$$sendTouchPointMoved --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="sendTouchPointMoved-method"> <td class="tblQmlFuncNode"><p> <a name="sendTouchPointMoved-method"></a><span class="type">void</span> <span class="name">sendTouchPointMoved</span>(<span class="type"><a href="qml-qtwayland-compositor-waylandsurface.html">WaylandSurface</a></span> <i>surface</i>, <span class="type">int</span> <i>id</i>, <span class="type">point</span> <i>position</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Sends a touch moved event for the touch point <i>id</i> on <i>surface</i> with position <i>position</i>.</p> <p><b>Note: </b>You need to send a touch frame event when you are done sending touch events.</p><p>Returns the serial for the touch motion event.</p> </div></div><!-- @@@sendTouchPointMoved --> <br/> <!-- $$$sendTouchPointPressed --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="sendTouchPointPressed-method"> <td class="tblQmlFuncNode"><p> <a name="sendTouchPointPressed-method"></a><span class="type">uint</span> <span class="name">sendTouchPointPressed</span>(<span class="type"><a href="qml-qtwayland-compositor-waylandsurface.html">WaylandSurface</a></span> <i>surface</i>, <span class="type">int</span> <i>id</i>, <span class="type">point</span> <i>position</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Sends a touch pressed event for the touch point <i>id</i> on <i>surface</i> with position <i>position</i>.</p> <p><b>Note: </b>You need to send a touch frame event when you are done sending touch events.</p><p>Returns the serial for the touch down event.</p> </div></div><!-- @@@sendTouchPointPressed --> <br/> <!-- $$$sendTouchPointReleased --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="sendTouchPointReleased-method"> <td class="tblQmlFuncNode"><p> <a name="sendTouchPointReleased-method"></a><span class="type">void</span> <span class="name">sendTouchPointReleased</span>(<span class="type"><a href="qml-qtwayland-compositor-waylandsurface.html">WaylandSurface</a></span> <i>surface</i>, <span class="type">int</span> <i>id</i>, <span class="type">point</span> <i>position</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Sends a touch released event for the touch point <i>id</i> on <i>surface</i> with position <i>position</i>.</p> <p><b>Note: </b>You need to send a touch frame event when you are done sending touch events.</p><p>Returns the serial for the touch up event.</p> </div></div><!-- @@@sendTouchPointReleased --> <br/> </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>