Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 3451

qtbase5-doc-5.9.4-1.1.mga6.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" />
<!-- qgesture.cpp -->
  <title>QPanGesture Class | Qt Widgets 5.9</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.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QPanGesture</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</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">QPanGesture Class</h1>
<!-- $$$QPanGesture-brief -->
<p>The <a href="qpangesture.html">QPanGesture</a> class describes a panning gesture made by the user. <a href="#details">More...</a></p>
<!-- @@@QPanGesture -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QPanGesture&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.6</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qgesture.html">QGesture</a></td></tr></table></div><ul>
<li><a href="qpangesture-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="qpangesture.html#acceleration-prop">acceleration</a></b> : qreal</li>
<li class="fn"><b><a href="qpangesture.html#delta-prop">delta</a></b> : const QPointF</li>
<li class="fn"><b><a href="qpangesture.html#lastOffset-prop">lastOffset</a></b> : QPointF</li>
<li class="fn"><b><a href="qpangesture.html#offset-prop">offset</a></b> : QPointF</li>
</ul>
<ul>
<li class="fn">5 properties inherited from <a href="qgesture.html#properties">QGesture</a></li>
<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="qpangesture.html#dtor.QPanGesture">~QPanGesture</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#acceleration-prop">acceleration</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#delta-prop">delta</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#lastOffset-prop">lastOffset</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#offset-prop">offset</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#acceleration-prop">setAcceleration</a></b>(qreal <i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#lastOffset-prop">setLastOffset</a></b>(const QPointF &amp;<i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpangesture.html#offset-prop">setOffset</a></b>(const QPointF &amp;<i>value</i>)</td></tr>
</table></div>
<ul>
<li class="fn">8 public functions inherited from <a href="qgesture.html#public-functions">QGesture</a></li>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">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">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">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>
<!-- $$$QPanGesture-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qpangesture.html">QPanGesture</a> class describes a panning gesture made by the user.</p>
<p class="centerAlign"><img src="images/pangesture.png" alt="" /></p><p>For an overview of gesture handling in Qt and information on using gestures in your applications, see the <a href="gestures-overview.html">Gestures in Widgets and Graphics View</a> document.</p>
</div>
<p><b>See also </b><a href="qpinchgesture.html">QPinchGesture</a> and <a href="qswipegesture.html">QSwipeGesture</a>.</p>
<!-- @@@QPanGesture -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$acceleration-prop$$$acceleration$$$setAccelerationqreal -->
<h3 class="fn" id="acceleration-prop"><a name="acceleration-prop"></a><span class="name">acceleration</span> : <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the acceleration in the motion of the touch point for this gesture</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>acceleration</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAcceleration</b></span>(qreal <i>value</i>)</td></tr>
</table></div>
<!-- @@@acceleration -->
<!-- $$$delta-prop$$$delta -->
<h3 class="fn" id="delta-prop"><a name="delta-prop"></a><span class="name">delta</span> : const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span></h3>
<p>This property holds the offset from the previous input position to the current input</p>
<p>This is essentially the same as the difference between <a href="qpangesture.html#offset-prop">offset</a>() and <a href="qpangesture.html#lastOffset-prop">lastOffset</a>().</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPointF </td><td class="memItemRight bottomAlign"><span class="name"><b>delta</b></span>() const</td></tr>
</table></div>
<!-- @@@delta -->
<!-- $$$lastOffset-prop$$$lastOffset$$$setLastOffsetconstQPointF& -->
<h3 class="fn" id="lastOffset-prop"><a name="lastOffset-prop"></a><span class="name">lastOffset</span> : <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span></h3>
<p>This property holds the last offset recorded for this gesture</p>
<p>The last offset contains the change in position of the user's input as reported in the <a href="qpangesture.html#offset-prop">offset</a> property when a previous gesture event was delivered for this gesture.</p>
<p>If no previous event was delivered with information about this gesture (i.e&#x2e;, this gesture object contains information about the first movement in the gesture) then this property contains a zero size.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPointF </td><td class="memItemRight bottomAlign"><span class="name"><b>lastOffset</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLastOffset</b></span>(const QPointF &amp;<i>value</i>)</td></tr>
</table></div>
<!-- @@@lastOffset -->
<!-- $$$offset-prop$$$offset$$$setOffsetconstQPointF& -->
<h3 class="fn" id="offset-prop"><a name="offset-prop"></a><span class="name">offset</span> : <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span></h3>
<p>This property holds the total offset from the first input position to the current input position</p>
<p>The offset measures the total change in position of the user's input covered by the gesture on the input device.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPointF </td><td class="memItemRight bottomAlign"><span class="name"><b>offset</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOffset</b></span>(const QPointF &amp;<i>value</i>)</td></tr>
</table></div>
<!-- @@@offset -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QPanGesture[overload1]$$$~QPanGesture -->
<h3 class="fn" id="dtor.QPanGesture"><a name="dtor.QPanGesture"></a>QPanGesture::<span class="name">~QPanGesture</span>()</h3>
<p>Destructor.</p>
<!-- @@@~QPanGesture -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 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>