<?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>QWaylandSeat Class | Qt Wayland Compositor 5.11</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 ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtwaylandcompositor-index.html">Qt Wayland Compositor</a></td><td ><a href="qtwaylandcompositor-module.html">C++ Classes</a></td><td >QWaylandSeat</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</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-types">Public Types</a></li> <li class="level1"><a href="#properties">Properties</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#signals">Signals</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">QWaylandSeat Class</h1> <!-- $$$QWaylandSeat-brief --> <p>The <a href="qwaylandseat.html">QWaylandSeat</a> class provides access to keyboard, mouse, and touch input. <a href="#details">More...</a></p> <!-- @@@QWaylandSeat --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QWaylandSeat></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="qwaylandseat-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2 id="public-types">Public Types</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#CapabilityFlag-enum">CapabilityFlag</a></b> { Pointer, Keyboard, Touch, DefaultCapabilities }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#CapabilityFlag-enum">CapabilityFlags</a></b></td></tr> </table></div> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><a href="qwaylandseat.html#drag-prop">drag</a></b> : QWaylandDrag* const</li> <li class="fn"><b><a href="qwaylandseat.html#keymap-prop">keymap</a></b> : QWaylandKeymap* const</li> </ul> <ul> <li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</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="qwaylandseat.html#QWaylandSeat">QWaylandSeat</a></b>(QWaylandCompositor *<i>compositor</i>, QWaylandSeat::CapabilityFlags <i>capabilityFlags</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#dtor.QWaylandSeat">~QWaylandSeat</a></b>() override</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandSeat::CapabilityFlags </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#capabilities">capabilities</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandCompositor *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#compositor">compositor</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandDrag *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#drag">drag</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#initialize">initialize</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#isInitialized">isInitialized</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandKeyboard *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#keyboard">keyboard</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandSurface *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#keyboardFocus">keyboardFocus</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandKeymap *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#keymap-prop">keymap</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandView *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#mouseFocus">mouseFocus</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandPointer *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#pointer">pointer</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendFullKeyEvent">sendFullKeyEvent</a></b>(QKeyEvent *<i>event</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendFullTouchEvent">sendFullTouchEvent</a></b>(QWaylandSurface *<i>surface</i>, QTouchEvent *<i>event</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendKeyPressEvent">sendKeyPressEvent</a></b>(uint <i>code</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendKeyReleaseEvent">sendKeyReleaseEvent</a></b>(uint <i>code</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendMouseMoveEvent">sendMouseMoveEvent</a></b>(QWaylandView *<i>view</i>, const QPointF &<i>localPos</i>, const QPointF &<i>outputSpacePos</i> = QPointF())</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendMousePressEvent">sendMousePressEvent</a></b>(Qt::MouseButton <i>button</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendMouseReleaseEvent">sendMouseReleaseEvent</a></b>(Qt::MouseButton <i>button</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendMouseWheelEvent">sendMouseWheelEvent</a></b>(Qt::Orientation <i>orientation</i>, int <i>delta</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendTouchCancelEvent">sendTouchCancelEvent</a></b>(QWaylandClient *<i>client</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendTouchFrameEvent">sendTouchFrameEvent</a></b>(QWaylandClient *<i>client</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendTouchPointEvent">sendTouchPointEvent</a></b>(QWaylandSurface *<i>surface</i>, int <i>id</i>, const QPointF &<i>point</i>, Qt::TouchPointState <i>state</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendTouchPointMoved">sendTouchPointMoved</a></b>(QWaylandSurface *<i>surface</i>, int <i>id</i>, const QPointF &<i>position</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendTouchPointPressed">sendTouchPointPressed</a></b>(QWaylandSurface *<i>surface</i>, int <i>id</i>, const QPointF &<i>position</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#sendTouchPointReleased">sendTouchPointReleased</a></b>(QWaylandSurface *<i>surface</i>, int <i>id</i>, const QPointF &<i>position</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#setKeyboardFocus">setKeyboardFocus</a></b>(QWaylandSurface *<i>surface</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#setMouseFocus">setMouseFocus</a></b>(QWaylandView *<i>view</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QWaylandTouch *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#touch">touch</a></b>() const</td></tr> </table></div> <ul> <li class="fn">34 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li> </ul> <a name="signals"></a> <h2 id="signals">Signals</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#cursorSurfaceRequest">cursorSurfaceRequest</a></b>(QWaylandSurface *<i>surface</i>, int <i>hotspotX</i>, int <i>hotspotY</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#keyboardFocusChanged">keyboardFocusChanged</a></b>(QWaylandSurface *<i>newFocus</i>, QWaylandSurface *<i>oldFocus</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#mouseFocusChanged">mouseFocusChanged</a></b>(QWaylandView *<i>newFocus</i>, QWaylandView *<i>oldFocus</i>)</td></tr> </table></div> <ul> <li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li> </ul> <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"> QWaylandSeat *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandseat.html#fromSeatResource">fromSeatResource</a></b>(struct ::wl_resource *<i>resource</i>)</td></tr> </table></div> <ul> <li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li> </ul> <h3>Additional Inherited Members</h3> <ul> <li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li> <li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li> <li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li> <li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li> </ul> <a name="details"></a> <!-- $$$QWaylandSeat-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qwaylandseat.html">QWaylandSeat</a> class provides access to keyboard, mouse, and touch input.</p> <p>The <a href="qwaylandseat.html">QWaylandSeat</a> 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> </div> <!-- @@@QWaylandSeat --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$CapabilityFlag$$$Pointer$$$Keyboard$$$Touch$$$DefaultCapabilities --> <h3 class="flags" id="CapabilityFlag-enum"><a name="CapabilityFlag-enum"></a>enum QWaylandSeat::<span class="name">CapabilityFlag</span><br/>flags QWaylandSeat::<span class="name">CapabilityFlags</span></h3> <p>This enum type describes the capabilities of a <a href="qwaylandseat.html">QWaylandSeat</a>.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>QWaylandSeat::Pointer</code></td><td class="topAlign tblval"><code>0x01</code></td><td class="topAlign">The <a href="qwaylandseat.html">QWaylandSeat</a> supports pointer input.</td></tr> <tr><td class="topAlign"><code>QWaylandSeat::Keyboard</code></td><td class="topAlign tblval"><code>0x02</code></td><td class="topAlign">The <a href="qwaylandseat.html">QWaylandSeat</a> supports keyboard input.</td></tr> <tr><td class="topAlign"><code>QWaylandSeat::Touch</code></td><td class="topAlign tblval"><code>0x04</code></td><td class="topAlign">The <a href="qwaylandseat.html">QWaylandSeat</a> supports touch input.</td></tr> <tr><td class="topAlign"><code>QWaylandSeat::DefaultCapabilities</code></td><td class="topAlign tblval"><code>Pointer | Keyboard | Touch</code></td><td class="topAlign">The <a href="qwaylandseat.html">QWaylandSeat</a> has the default capabilities.</td></tr> </table></div> <p>The CapabilityFlags type is a typedef for <a href="../qtcore/qflags.html">QFlags</a><CapabilityFlag>. It stores an OR combination of CapabilityFlag values.</p> <!-- @@@CapabilityFlag --> </div> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$drag-prop$$$drag --> <h3 class="fn" id="drag-prop"><a name="drag-prop"></a><span class="name">drag</span> : <span class="type">QWaylandDrag</span>* const</h3> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QWaylandDrag *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qwaylandseat.html#drag">drag</a></b></span>() const</td></tr> </table></div> <!-- @@@drag --> <!-- $$$keymap-prop$$$keymap --> <h3 class="fn" id="keymap-prop"><a name="keymap-prop"></a><span class="name">keymap</span> : <span class="type">QWaylandKeymap</span>* const</h3> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QWaylandKeymap *</td><td class="memItemRight bottomAlign"><span class="name"><b>keymap</b></span>()</td></tr> </table></div> <!-- @@@keymap --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QWaylandSeat[overload1]$$$QWaylandSeatQWaylandCompositor*QWaylandSeat::CapabilityFlags --> <h3 class="fn" id="QWaylandSeat"><a name="QWaylandSeat"></a>QWaylandSeat::<span class="name">QWaylandSeat</span>(<span class="type"><a href="qwaylandcompositor.html">QWaylandCompositor</a></span> *<i>compositor</i>, <span class="type"><a href="qwaylandseat.html#CapabilityFlag-enum">QWaylandSeat::CapabilityFlags</a></span> <i>capabilityFlags</i>)</h3> <p>Constructs a <a href="qwaylandseat.html">QWaylandSeat</a> for the given <i>compositor</i> and with the given <i>capabilityFlags</i>.</p> <!-- @@@QWaylandSeat --> <!-- $$$~QWaylandSeat[overload1]$$$~QWaylandSeat --> <h3 class="fn" id="dtor.QWaylandSeat"><a name="dtor.QWaylandSeat"></a><code>[override virtual] </code>QWaylandSeat::<span class="name">~QWaylandSeat</span>()</h3> <p>Destroys the <a href="qwaylandseat.html">QWaylandSeat</a></p> <!-- @@@~QWaylandSeat --> <!-- $$$capabilities[overload1]$$$capabilities --> <h3 class="fn" id="capabilities"><a name="capabilities"></a><span class="type"><a href="qwaylandseat.html#CapabilityFlag-enum">QWaylandSeat::CapabilityFlags</a></span> QWaylandSeat::<span class="name">capabilities</span>() const</h3> <p>Returns the capability flags for this <a href="qwaylandseat.html">QWaylandSeat</a>.</p> <!-- @@@capabilities --> <!-- $$$compositor[overload1]$$$compositor --> <h3 class="fn" id="compositor"><a name="compositor"></a><span class="type"><a href="qwaylandcompositor.html">QWaylandCompositor</a></span> *QWaylandSeat::<span class="name">compositor</span>() const</h3> <p>Returns the compositor for this <a href="qwaylandseat.html">QWaylandSeat</a>.</p> <!-- @@@compositor --> <!-- $$$cursorSurfaceRequest[overload1]$$$cursorSurfaceRequestQWaylandSurface*intint --> <h3 class="fn" id="cursorSurfaceRequest"><a name="cursorSurfaceRequest"></a><code>[signal] </code><span class="type">void</span> QWaylandSeat::<span class="name">cursorSurfaceRequest</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>, <span class="type">int</span> <i>hotspotX</i>, <span class="type">int</span> <i>hotspotY</i>)</h3> <!-- @@@cursorSurfaceRequest --> <!-- $$$drag --> <h3 class="fn" id="drag"><a name="drag"></a><span class="type">QWaylandDrag</span> *QWaylandSeat::<span class="name">drag</span>() const</h3> <p>Returns the drag object for this <a href="qwaylandseat.html">QWaylandSeat</a>.</p> <p><b>Note:</b> Getter function for property <a href="qwaylandseat.html#drag-prop">drag</a>. </p><!-- @@@drag --> <!-- $$$fromSeatResource[overload1]$$$fromSeatResourcestruct::wl_resource* --> <h3 class="fn" id="fromSeatResource"><a name="fromSeatResource"></a><code>[static] </code><span class="type"><a href="qwaylandseat.html#QWaylandSeat">QWaylandSeat</a></span> *QWaylandSeat::<span class="name">fromSeatResource</span>(<span class="type">struct</span> <span class="type">::wl_resource</span> *<i>resource</i>)</h3> <p>Returns the <a href="qwaylandseat.html">QWaylandSeat</a> corresponding to the <i>resource</i>. The <i>resource</i> is expected to have the type wl_seat.</p> <!-- @@@fromSeatResource --> <!-- $$$initialize[overload1]$$$initialize --> <h3 class="fn" id="initialize"><a name="initialize"></a><code>[virtual] </code><span class="type">void</span> QWaylandSeat::<span class="name">initialize</span>()</h3> <!-- @@@initialize --> <!-- $$$isInitialized[overload1]$$$isInitialized --> <h3 class="fn" id="isInitialized"><a name="isInitialized"></a><span class="type">bool</span> QWaylandSeat::<span class="name">isInitialized</span>() const</h3> <!-- @@@isInitialized --> <!-- $$$keyboard[overload1]$$$keyboard --> <h3 class="fn" id="keyboard"><a name="keyboard"></a><span class="type"><a href="qwaylandkeyboard.html">QWaylandKeyboard</a></span> *QWaylandSeat::<span class="name">keyboard</span>() const</h3> <p>Returns the keyboard for this input device.</p> <!-- @@@keyboard --> <!-- $$$keyboardFocus[overload1]$$$keyboardFocus --> <h3 class="fn" id="keyboardFocus"><a name="keyboardFocus"></a><span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *QWaylandSeat::<span class="name">keyboardFocus</span>() const</h3> <p>Returns the current focused surface for keyboard input.</p> <p><b>See also </b><a href="qwaylandseat.html#setKeyboardFocus">setKeyboardFocus</a>().</p> <!-- @@@keyboardFocus --> <!-- $$$keyboardFocusChanged[overload1]$$$keyboardFocusChangedQWaylandSurface*QWaylandSurface* --> <h3 class="fn" id="keyboardFocusChanged"><a name="keyboardFocusChanged"></a><code>[signal] </code><span class="type">void</span> QWaylandSeat::<span class="name">keyboardFocusChanged</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>newFocus</i>, <span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>oldFocus</i>)</h3> <!-- @@@keyboardFocusChanged --> <!-- $$$mouseFocus[overload1]$$$mouseFocus --> <h3 class="fn" id="mouseFocus"><a name="mouseFocus"></a><span class="type"><a href="qwaylandview.html">QWaylandView</a></span> *QWaylandSeat::<span class="name">mouseFocus</span>() const</h3> <p>Returns the view that currently has mouse focus.</p> <p><b>See also </b><a href="qwaylandseat.html#setMouseFocus">setMouseFocus</a>().</p> <!-- @@@mouseFocus --> <!-- $$$mouseFocusChanged[overload1]$$$mouseFocusChangedQWaylandView*QWaylandView* --> <h3 class="fn" id="mouseFocusChanged"><a name="mouseFocusChanged"></a><code>[signal] </code><span class="type">void</span> QWaylandSeat::<span class="name">mouseFocusChanged</span>(<span class="type"><a href="qwaylandview.html">QWaylandView</a></span> *<i>newFocus</i>, <span class="type"><a href="qwaylandview.html">QWaylandView</a></span> *<i>oldFocus</i>)</h3> <p>This signal is emitted when the mouse focus has changed from <i>oldFocus</i> to <i>newFocus</i>.</p> <!-- @@@mouseFocusChanged --> <!-- $$$pointer[overload1]$$$pointer --> <h3 class="fn" id="pointer"><a name="pointer"></a><span class="type"><a href="qwaylandpointer.html">QWaylandPointer</a></span> *QWaylandSeat::<span class="name">pointer</span>() const</h3> <p>Returns the pointer device for this <a href="qwaylandseat.html">QWaylandSeat</a>.</p> <!-- @@@pointer --> <!-- $$$sendFullKeyEvent[overload1]$$$sendFullKeyEventQKeyEvent* --> <h3 class="fn" id="sendFullKeyEvent"><a name="sendFullKeyEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendFullKeyEvent</span>(<span class="type"><a href="../qtgui/qkeyevent.html">QKeyEvent</a></span> *<i>event</i>)</h3> <p>Sends the <i>event</i> to the keyboard device.</p> <!-- @@@sendFullKeyEvent --> <!-- $$$sendFullTouchEvent[overload1]$$$sendFullTouchEventQWaylandSurface*QTouchEvent* --> <h3 class="fn" id="sendFullTouchEvent"><a name="sendFullTouchEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendFullTouchEvent</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>, <span class="type"><a href="../qtgui/qtouchevent.html">QTouchEvent</a></span> *<i>event</i>)</h3> <p>Sends the <i>event</i> to the specified <i>surface</i> on the touch device.</p> <!-- @@@sendFullTouchEvent --> <!-- $$$sendKeyPressEvent[overload1]$$$sendKeyPressEventuint --> <h3 class="fn" id="sendKeyPressEvent"><a name="sendKeyPressEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendKeyPressEvent</span>(<span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span> <i>code</i>)</h3> <p>Sends a key press event with the key <i>code</i> to the keyboard device.</p> <!-- @@@sendKeyPressEvent --> <!-- $$$sendKeyReleaseEvent[overload1]$$$sendKeyReleaseEventuint --> <h3 class="fn" id="sendKeyReleaseEvent"><a name="sendKeyReleaseEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendKeyReleaseEvent</span>(<span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span> <i>code</i>)</h3> <p>Sends a key release event with the key <i>code</i> to the keyboard device.</p> <!-- @@@sendKeyReleaseEvent --> <!-- $$$sendMouseMoveEvent[overload1]$$$sendMouseMoveEventQWaylandView*constQPointF&constQPointF& --> <h3 class="fn" id="sendMouseMoveEvent"><a name="sendMouseMoveEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendMouseMoveEvent</span>(<span class="type"><a href="qwaylandview.html">QWaylandView</a></span> *<i>view</i>, const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &<i>localPos</i>, const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &<i>outputSpacePos</i> = QPointF())</h3> <p>Sets the mouse focus to <i>view</i> and sends a mouse move event to the pointer device with the local position <i>localPos</i> and output space position <i>outputSpacePos</i>.</p> <!-- @@@sendMouseMoveEvent --> <!-- $$$sendMousePressEvent[overload1]$$$sendMousePressEventQt::MouseButton --> <h3 class="fn" id="sendMousePressEvent"><a name="sendMousePressEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendMousePressEvent</span>(<span class="type">Qt::MouseButton</span> <i>button</i>)</h3> <p>Sends a mouse press event for <i>button</i> to the <a href="qwaylandseat.html">QWaylandSeat</a>'s pointer device.</p> <!-- @@@sendMousePressEvent --> <!-- $$$sendMouseReleaseEvent[overload1]$$$sendMouseReleaseEventQt::MouseButton --> <h3 class="fn" id="sendMouseReleaseEvent"><a name="sendMouseReleaseEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendMouseReleaseEvent</span>(<span class="type">Qt::MouseButton</span> <i>button</i>)</h3> <p>Sends a mouse release event for <i>button</i> to the <a href="qwaylandseat.html">QWaylandSeat</a>'s pointer device.</p> <!-- @@@sendMouseReleaseEvent --> <!-- $$$sendMouseWheelEvent[overload1]$$$sendMouseWheelEventQt::Orientationint --> <h3 class="fn" id="sendMouseWheelEvent"><a name="sendMouseWheelEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendMouseWheelEvent</span>(<span class="type">Qt::Orientation</span> <i>orientation</i>, <span class="type">int</span> <i>delta</i>)</h3> <p>Sends a mouse wheel event to the <a href="qwaylandseat.html">QWaylandSeat</a>'s pointer device with the given <i>orientation</i> and <i>delta</i>.</p> <!-- @@@sendMouseWheelEvent --> <!-- $$$sendTouchCancelEvent[overload1]$$$sendTouchCancelEventQWaylandClient* --> <h3 class="fn" id="sendTouchCancelEvent"><a name="sendTouchCancelEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendTouchCancelEvent</span>(<span class="type"><a href="qwaylandclient.html">QWaylandClient</a></span> *<i>client</i>)</h3> <p>Sends a cancel event to the touch device of a <i>client</i>.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="../qtcore/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p> <!-- @@@sendTouchCancelEvent --> <!-- $$$sendTouchFrameEvent[overload1]$$$sendTouchFrameEventQWaylandClient* --> <h3 class="fn" id="sendTouchFrameEvent"><a name="sendTouchFrameEvent"></a><span class="type">void</span> QWaylandSeat::<span class="name">sendTouchFrameEvent</span>(<span class="type"><a href="qwaylandclient.html">QWaylandClient</a></span> *<i>client</i>)</h3> <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> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="../qtcore/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p> <!-- @@@sendTouchFrameEvent --> <!-- $$$sendTouchPointEvent[overload1]$$$sendTouchPointEventQWaylandSurface*intconstQPointF&Qt::TouchPointState --> <h3 class="fn" id="sendTouchPointEvent"><a name="sendTouchPointEvent"></a><span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span> QWaylandSeat::<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"><a href="../qtcore/qpointf.html">QPointF</a></span> &<i>point</i>, <span class="type">Qt::TouchPointState</span> <i>state</i>)</h3> <p>Sends a touch point event to the <i>surface</i> on a touch device with the given <i>id</i>, <i>point</i> and <i>state</i>.</p> <p>Returns the serial for the touch up or touch down event.</p> <!-- @@@sendTouchPointEvent --> <!-- $$$sendTouchPointMoved[overload1]$$$sendTouchPointMovedQWaylandSurface*intconstQPointF& --> <h3 class="fn" id="sendTouchPointMoved"><a name="sendTouchPointMoved"></a><span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span> QWaylandSeat::<span class="name">sendTouchPointMoved</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"><a href="../qtcore/qpointf.html">QPointF</a></span> &<i>position</i>)</h3> <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> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="../qtcore/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p> <!-- @@@sendTouchPointMoved --> <!-- $$$sendTouchPointPressed[overload1]$$$sendTouchPointPressedQWaylandSurface*intconstQPointF& --> <h3 class="fn" id="sendTouchPointPressed"><a name="sendTouchPointPressed"></a><span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span> QWaylandSeat::<span class="name">sendTouchPointPressed</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"><a href="../qtcore/qpointf.html">QPointF</a></span> &<i>position</i>)</h3> <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> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="../qtcore/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p> <!-- @@@sendTouchPointPressed --> <!-- $$$sendTouchPointReleased[overload1]$$$sendTouchPointReleasedQWaylandSurface*intconstQPointF& --> <h3 class="fn" id="sendTouchPointReleased"><a name="sendTouchPointReleased"></a><span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span> QWaylandSeat::<span class="name">sendTouchPointReleased</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"><a href="../qtcore/qpointf.html">QPointF</a></span> &<i>position</i>)</h3> <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> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See <a href="../qtcore/qobject.html#Q_INVOKABLE">Q_INVOKABLE</a>.</p> <!-- @@@sendTouchPointReleased --> <!-- $$$setKeyboardFocus[overload1]$$$setKeyboardFocusQWaylandSurface* --> <h3 class="fn" id="setKeyboardFocus"><a name="setKeyboardFocus"></a><span class="type">bool</span> QWaylandSeat::<span class="name">setKeyboardFocus</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>)</h3> <p>Sets the current keyboard focus to <i>surface</i>. Returns a boolean indicating if the operation was successful.</p> <p><b>See also </b><a href="qwaylandseat.html#keyboardFocus">keyboardFocus</a>().</p> <!-- @@@setKeyboardFocus --> <!-- $$$setMouseFocus[overload1]$$$setMouseFocusQWaylandView* --> <h3 class="fn" id="setMouseFocus"><a name="setMouseFocus"></a><span class="type">void</span> QWaylandSeat::<span class="name">setMouseFocus</span>(<span class="type"><a href="qwaylandview.html">QWaylandView</a></span> *<i>view</i>)</h3> <p>Sets the current mouse focus to <i>view</i>.</p> <p><b>See also </b><a href="qwaylandseat.html#mouseFocus">mouseFocus</a>().</p> <!-- @@@setMouseFocus --> <!-- $$$touch[overload1]$$$touch --> <h3 class="fn" id="touch"><a name="touch"></a><span class="type"><a href="qwaylandtouch.html">QWaylandTouch</a></span> *QWaylandSeat::<span class="name">touch</span>() const</h3> <p>Returns the touch device for this <a href="qwaylandseat.html">QWaylandSeat</a>.</p> <!-- @@@touch --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 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>