Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > f171b9b27b527f95603e88add5c7e1b6 > files > 156

qtwayland5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwaylandkeyboard.cpp -->
  <title>QWaylandKeyboard 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 >QWaylandKeyboard</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="#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">QWaylandKeyboard Class</h1>
<!-- $$$QWaylandKeyboard-brief -->
<p>The <a href="qwaylandkeyboard.html">QWaylandKeyboard</a> class represents a keyboard device. <a href="#details">More...</a></p>
<!-- @@@QWaylandKeyboard -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QWaylandKeyboard&gt;</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="qwaylandkeyboard-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qwaylandkeyboard.html#repeatDelay-prop">repeatDelay</a></b> : quint32</li>
<li class="fn"><b><a href="qwaylandkeyboard.html#repeatRate-prop">repeatRate</a></b> : quint32</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="qwaylandkeyboard.html#QWaylandKeyboard">QWaylandKeyboard</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="qwaylandkeyboard.html#compositor">compositor</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWaylandSurface *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#focus">focus</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWaylandClient *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#focusClient">focusClient</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#keyToScanCode">keyToScanCode</a></b>(int <i>qtKey</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint32 </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#repeatDelay">repeatDelay</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint32 </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#repeatRate">repeatRate</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWaylandSeat *</td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#seat">seat</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#sendKeyModifiers">sendKeyModifiers</a></b>(QWaylandClient *<i>client</i>, uint32_t <i>serial</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#sendKeyPressEvent">sendKeyPressEvent</a></b>(uint <i>code</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#sendKeyReleaseEvent">sendKeyReleaseEvent</a></b>(uint <i>code</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#setFocus">setFocus</a></b>(QWaylandSurface *<i>surface</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#setRepeatDelay">setRepeatDelay</a></b>(quint32 <i>delay</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#setRepeatRate">setRepeatRate</a></b>(quint32 <i>rate</i>)</td></tr>
</table></div>
<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="qwaylandkeyboard.html#focusChanged">focusChanged</a></b>(QWaylandSurface *<i>surface</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#repeatDelay-prop">repeatDelayChanged</a></b>(quint32 <i>repeatDelay</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwaylandkeyboard.html#repeatRate-prop">repeatRateChanged</a></b>(quint32 <i>repeatRate</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="qwaylandkeyboard.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QWaylandKeyboard-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qwaylandkeyboard.html">QWaylandKeyboard</a> class represents a keyboard device.</p>
<p>This class provides access to the keyboard device in a <a href="qwaylandseat.html">QWaylandSeat</a>. It corresponds to the Wayland interface wl_keyboard.</p>
</div>
<!-- @@@QWaylandKeyboard -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$repeatDelay-prop$$$repeatDelay$$$setRepeatDelayquint32$$$repeatDelayChangedquint32 -->
<h3 class="fn" id="repeatDelay-prop"><a name="repeatDelay-prop"></a><span class="name">repeatDelay</span> : <span class="type">quint32</span></h3>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> quint32 </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qwaylandkeyboard.html#repeatDelay">repeatDelay</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qwaylandkeyboard.html#setRepeatDelay">setRepeatDelay</a></b></span>(quint32 <i>delay</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>repeatDelayChanged</b></span>(quint32 <i>repeatDelay</i>)</td></tr>
</table></div>
<!-- @@@repeatDelay -->
<!-- $$$repeatRate-prop$$$repeatRate$$$setRepeatRatequint32$$$repeatRateChangedquint32 -->
<h3 class="fn" id="repeatRate-prop"><a name="repeatRate-prop"></a><span class="name">repeatRate</span> : <span class="type">quint32</span></h3>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> quint32 </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qwaylandkeyboard.html#repeatRate">repeatRate</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qwaylandkeyboard.html#setRepeatRate">setRepeatRate</a></b></span>(quint32 <i>rate</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>repeatRateChanged</b></span>(quint32 <i>repeatRate</i>)</td></tr>
</table></div>
<!-- @@@repeatRate -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QWaylandKeyboard[overload1]$$$QWaylandKeyboardQWaylandSeat*QObject* -->
<h3 class="fn" id="QWaylandKeyboard"><a name="QWaylandKeyboard"></a>QWaylandKeyboard::<span class="name">QWaylandKeyboard</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="qwaylandkeyboard.html">QWaylandKeyboard</a> for the given <i>seat</i> and with the given <i>parent</i>.</p>
<!-- @@@QWaylandKeyboard -->
<!-- $$$compositor[overload1]$$$compositor -->
<h3 class="fn" id="compositor"><a name="compositor"></a><span class="type"><a href="qwaylandcompositor.html">QWaylandCompositor</a></span> *QWaylandKeyboard::<span class="name">compositor</span>() const</h3>
<p>Returns the compositor for this <a href="qwaylandkeyboard.html">QWaylandKeyboard</a>.</p>
<!-- @@@compositor -->
<!-- $$$focus[overload1]$$$focus -->
<h3 class="fn" id="focus"><a name="focus"></a><span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *QWaylandKeyboard::<span class="name">focus</span>() const</h3>
<p>Returns the currently focused surface.</p>
<p><b>See also </b><a href="qwaylandkeyboard.html#setFocus">setFocus</a>().</p>
<!-- @@@focus -->
<!-- $$$focusChanged[overload1]$$$focusChangedQWaylandSurface* -->
<h3 class="fn" id="focusChanged"><a name="focusChanged"></a><code>[signal] </code><span class="type">void</span> QWaylandKeyboard::<span class="name">focusChanged</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>)</h3>
<!-- @@@focusChanged -->
<!-- $$$focusClient[overload1]$$$focusClient -->
<h3 class="fn" id="focusClient"><a name="focusClient"></a><span class="type"><a href="qwaylandclient.html">QWaylandClient</a></span> *QWaylandKeyboard::<span class="name">focusClient</span>() const</h3>
<p>Returns the client that currently has keyboard focus.</p>
<!-- @@@focusClient -->
<!-- $$$keyToScanCode[overload1]$$$keyToScanCodeint -->
<h3 class="fn" id="keyToScanCode"><a name="keyToScanCode"></a><span class="type">uint</span> QWaylandKeyboard::<span class="name">keyToScanCode</span>(<span class="type">int</span> <i>qtKey</i>) const</h3>
<!-- @@@keyToScanCode -->
<!-- $$$repeatDelay -->
<h3 class="fn" id="repeatDelay"><a name="repeatDelay"></a><span class="type">quint32</span> QWaylandKeyboard::<span class="name">repeatDelay</span>() const</h3>
<p>Returns the current repeat delay.</p>
<p><b>Note:</b> Getter function for property <a href="qwaylandkeyboard.html#repeatDelay-prop">repeatDelay</a>. </p><p><b>See also </b><a href="qwaylandkeyboard.html#setRepeatDelay">setRepeatDelay</a>().</p>
<!-- @@@repeatDelay -->
<!-- $$$repeatRate -->
<h3 class="fn" id="repeatRate"><a name="repeatRate"></a><span class="type">quint32</span> QWaylandKeyboard::<span class="name">repeatRate</span>() const</h3>
<p>Returns the current repeat rate.</p>
<p><b>Note:</b> Getter function for property <a href="qwaylandkeyboard.html#repeatRate-prop">repeatRate</a>. </p><p><b>See also </b><a href="qwaylandkeyboard.html#setRepeatRate">setRepeatRate</a>().</p>
<!-- @@@repeatRate -->
<!-- $$$seat[overload1]$$$seat -->
<h3 class="fn" id="seat"><a name="seat"></a><span class="type"><a href="qwaylandseat.html">QWaylandSeat</a></span> *QWaylandKeyboard::<span class="name">seat</span>() const</h3>
<p>Returns the seat for this <a href="qwaylandkeyboard.html">QWaylandKeyboard</a>.</p>
<!-- @@@seat -->
<!-- $$$sendKeyModifiers[overload1]$$$sendKeyModifiersQWaylandClient*uint32_t -->
<h3 class="fn" id="sendKeyModifiers"><a name="sendKeyModifiers"></a><code>[virtual] </code><span class="type">void</span> QWaylandKeyboard::<span class="name">sendKeyModifiers</span>(<span class="type"><a href="qwaylandclient.html">QWaylandClient</a></span> *<i>client</i>, <span class="type">uint32_t</span> <i>serial</i>)</h3>
<!-- @@@sendKeyModifiers -->
<!-- $$$sendKeyPressEvent[overload1]$$$sendKeyPressEventuint -->
<h3 class="fn" id="sendKeyPressEvent"><a name="sendKeyPressEvent"></a><code>[virtual] </code><span class="type">void</span> QWaylandKeyboard::<span class="name">sendKeyPressEvent</span>(<span class="type">uint</span> <i>code</i>)</h3>
<p>Sends a key press event with the key <i>code</i> to the current keyboard focus.</p>
<!-- @@@sendKeyPressEvent -->
<!-- $$$sendKeyReleaseEvent[overload1]$$$sendKeyReleaseEventuint -->
<h3 class="fn" id="sendKeyReleaseEvent"><a name="sendKeyReleaseEvent"></a><code>[virtual] </code><span class="type">void</span> QWaylandKeyboard::<span class="name">sendKeyReleaseEvent</span>(<span class="type">uint</span> <i>code</i>)</h3>
<p>Sends a key release event with the key <i>code</i> to the current keyboard focus.</p>
<!-- @@@sendKeyReleaseEvent -->
<!-- $$$setFocus[overload1]$$$setFocusQWaylandSurface* -->
<h3 class="fn" id="setFocus"><a name="setFocus"></a><code>[virtual] </code><span class="type">void</span> QWaylandKeyboard::<span class="name">setFocus</span>(<span class="type"><a href="qwaylandsurface.html">QWaylandSurface</a></span> *<i>surface</i>)</h3>
<p>Sets the current focus to <i>surface</i>.</p>
<p><b>See also </b><a href="qwaylandkeyboard.html#focus">focus</a>().</p>
<!-- @@@setFocus -->
<!-- $$$setRepeatDelay -->
<h3 class="fn" id="setRepeatDelay"><a name="setRepeatDelay"></a><span class="type">void</span> QWaylandKeyboard::<span class="name">setRepeatDelay</span>(<span class="type">quint32</span> <i>delay</i>)</h3>
<p>Sets the repeat delay to <i>delay</i>.</p>
<p><b>Note:</b> Setter function for property <a href="qwaylandkeyboard.html#repeatDelay-prop">repeatDelay</a>. </p><p><b>See also </b><a href="qwaylandkeyboard.html#repeatDelay">repeatDelay</a>().</p>
<!-- @@@setRepeatDelay -->
<!-- $$$setRepeatRate -->
<h3 class="fn" id="setRepeatRate"><a name="setRepeatRate"></a><span class="type">void</span> QWaylandKeyboard::<span class="name">setRepeatRate</span>(<span class="type">quint32</span> <i>rate</i>)</h3>
<p>Sets the repeat rate to <i>rate</i>.</p>
<p><b>Note:</b> Setter function for property <a href="qwaylandkeyboard.html#repeatRate-prop">repeatRate</a>. </p><p><b>See also </b><a href="qwaylandkeyboard.html#repeatRate">repeatRate</a>().</p>
<!-- @@@setRepeatRate -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>