Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 393

qtbase5-doc-5.12.6-2.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" />
<!-- qeasingcurve.cpp -->
  <title>QEasingCurve Class | Qt Core 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="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QEasingCurve</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtcore-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-types">Public Types</a></li>
<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="#related-non-members">Related Non-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">QEasingCurve Class</h1>
<!-- $$$QEasingCurve-brief -->
<p>The <a href="qeasingcurve.html">QEasingCurve</a> class provides easing curves for controlling animation. <a href="#details">More...</a></p>
<!-- @@@QEasingCurve -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QEasingCurve&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.6</td></tr></table></div><ul>
<li><a href="qeasingcurve-members.html">List of all members, including inherited members</a></li>
<li><a href="qeasingcurve-obsolete.html">Obsolete 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"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#EasingFunction-typedef">EasingFunction</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#Type-enum">Type</a></b> { Linear, InQuad, OutQuad, InOutQuad, ..., Custom }</td></tr>
</table></div>
<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="qeasingcurve.html#QEasingCurve">QEasingCurve</a></b>(QEasingCurve::Type <i>type</i> = Linear)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#QEasingCurve-1">QEasingCurve</a></b>(const QEasingCurve &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#QEasingCurve-2">QEasingCurve</a></b>(QEasingCurve &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#dtor.QEasingCurve">~QEasingCurve</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#addCubicBezierSegment">addCubicBezierSegment</a></b>(const QPointF &amp;<i>c1</i>, const QPointF &amp;<i>c2</i>, const QPointF &amp;<i>endPoint</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#addTCBSegment">addTCBSegment</a></b>(const QPointF &amp;<i>nextPoint</i>, qreal <i>t</i>, qreal <i>c</i>, qreal <i>b</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#amplitude">amplitude</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QEasingCurve::EasingFunction </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#customType">customType</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#overshoot">overshoot</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#period">period</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#setAmplitude">setAmplitude</a></b>(qreal <i>amplitude</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#setCustomType">setCustomType</a></b>(QEasingCurve::EasingFunction <i>func</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#setOvershoot">setOvershoot</a></b>(qreal <i>overshoot</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#setPeriod">setPeriod</a></b>(qreal <i>period</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#setType">setType</a></b>(QEasingCurve::Type <i>type</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#swap">swap</a></b>(QEasingCurve &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVector&lt;QPointF&gt; </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#toCubicSpline">toCubicSpline</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QEasingCurve::Type </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#type">type</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#valueForProgress">valueForProgress</a></b>(qreal <i>progress</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#operator-not-eq">operator!=</a></b>(const QEasingCurve &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QEasingCurve &amp;</td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#operator-eq">operator=</a></b>(const QEasingCurve &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QEasingCurve &amp;</td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#operator-eq-1">operator=</a></b>(QEasingCurve &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#operator-eq-eq">operator==</a></b>(const QEasingCurve &amp;<i>other</i>) const</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="qeasingcurve.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#operator-lt-lt">operator&lt;&lt;</a></b>(QDataStream &amp;<i>stream</i>, const QEasingCurve &amp;<i>easing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="qeasingcurve.html#operator-gt-gt">operator&gt;&gt;</a></b>(QDataStream &amp;<i>stream</i>, QEasingCurve &amp;<i>easing</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QEasingCurve-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qeasingcurve.html">QEasingCurve</a> class provides easing curves for controlling animation.</p>
<p>Easing curves describe a function that controls how the speed of the interpolation between 0 and 1 should be. Easing curves allow transitions from one value to another to appear more natural than a simple constant speed would allow. The <a href="qeasingcurve.html">QEasingCurve</a> class is usually used in conjunction with the <a href="qvariantanimation.html">QVariantAnimation</a> and <a href="qpropertyanimation.html">QPropertyAnimation</a> classes but can be used on its own. It is usually used to accelerate the interpolation from zero velocity (ease in) or decelerate to zero velocity (ease out). Ease in and ease out can also be combined in the same easing curve.</p>
<p>To calculate the speed of the interpolation, the easing curve provides the function <a href="qeasingcurve.html#valueForProgress">valueForProgress</a>(), where the <i>progress</i> argument specifies the progress of the interpolation: 0 is the start value of the interpolation, 1 is the end value of the interpolation. The returned value is the effective progress of the interpolation. If the returned value is the same as the input value for all input values the easing curve is a linear curve. This is the default behaviour.</p>
<p>For example,</p>
<pre class="cpp">

      <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> easing(<span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span><span class="operator">::</span>InOutQuad);

      <span class="keyword">for</span> (<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> t <span class="operator">=</span> <span class="number">0.0</span>; t <span class="operator">&lt;</span> <span class="number">1.0</span>; t <span class="operator">+</span><span class="operator">=</span> <span class="number">0.1</span>)
          <a href="qtglobal.html#qWarning">qWarning</a>() <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Effective progress&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> t <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;is&quot;</span>
                     <span class="operator">&lt;</span><span class="operator">&lt;</span> easing<span class="operator">.</span>valueForProgress(t);

</pre>
<p>will print the effective progress of the interpolation between 0 and 1.</p>
<p>When using a <a href="qpropertyanimation.html">QPropertyAnimation</a>, the associated easing curve will be used to control the progress of the interpolation between startValue and endValue:</p>
<pre class="cpp">

      <span class="type"><a href="qpropertyanimation.html">QPropertyAnimation</a></span> animation;
      animation<span class="operator">.</span>setStartValue(<span class="number">0</span>);
      animation<span class="operator">.</span>setEndValue(<span class="number">1000</span>);
      animation<span class="operator">.</span>setDuration(<span class="number">1000</span>);
      animation<span class="operator">.</span>setEasingCurve(<span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span><span class="operator">::</span>InOutQuad);

</pre>
<p>The ability to set an amplitude, overshoot, or period depends on the <a href="qeasingcurve.html">QEasingCurve</a> type. Amplitude access is available to curves that behave as springs such as elastic and bounce curves. Changing the amplitude changes the height of the curve. Period access is only available to elastic curves and setting a higher period slows the rate of bounce. Only curves that have &quot;boomerang&quot; behaviors such as the <a href="qeasingcurve.html#Type-enum">InBack</a>, <a href="qeasingcurve.html#Type-enum">OutBack</a>, <a href="qeasingcurve.html#Type-enum">InOutBack</a>, and <a href="qeasingcurve.html#Type-enum">OutInBack</a> have overshoot settings. These curves will interpolate beyond the end points and return to the end point, acting similar to a boomerang.</p>
<p>The <a href="../qtwidgets/qtwidgets-animation-easing-example.html">Easing Curves Example</a> contains samples of <a href="qeasingcurve.html">QEasingCurve</a> types and lets you change the curve settings.</p>
</div>
<!-- @@@QEasingCurve -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$EasingFunction -->
<h3 class="fn" id="EasingFunction-typedef"><a name="EasingFunction-typedef"></a>typedef QEasingCurve::<span class="name">EasingFunction</span></h3>
<p>This is a typedef for a pointer to a function with the following signature:</p>
<pre class="cpp">

  <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> myEasingFunction(<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> progress);

</pre>
<!-- @@@EasingFunction -->
<!-- $$$Type$$$Linear$$$InQuad$$$OutQuad$$$InOutQuad$$$OutInQuad$$$InCubic$$$OutCubic$$$InOutCubic$$$OutInCubic$$$InQuart$$$OutQuart$$$InOutQuart$$$OutInQuart$$$InQuint$$$OutQuint$$$InOutQuint$$$OutInQuint$$$InSine$$$OutSine$$$InOutSine$$$OutInSine$$$InExpo$$$OutExpo$$$InOutExpo$$$OutInExpo$$$InCirc$$$OutCirc$$$InOutCirc$$$OutInCirc$$$InElastic$$$OutElastic$$$InOutElastic$$$OutInElastic$$$InBack$$$OutBack$$$InOutBack$$$OutInBack$$$InBounce$$$OutBounce$$$InOutBounce$$$OutInBounce$$$InCurve$$$OutCurve$$$SineCurve$$$CosineCurve$$$BezierSpline$$$TCBSpline$$$Custom$$$NCurveTypes -->
<h3 class="fn" id="Type-enum"><a name="Type-enum"></a>enum QEasingCurve::<span class="name">Type</span></h3>
<p>The type of easing curve.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::Linear</code></td><td class="topAlign tblval"><code>0</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-linear.png" alt="" /></p><p class="figCaption">Easing curve for a linear (t) function: velocity is constant.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InQuad</code></td><td class="topAlign tblval"><code>1</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inquad.png" alt="" /></p><p class="figCaption">Easing curve for a quadratic (t^2) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutQuad</code></td><td class="topAlign tblval"><code>2</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outquad.png" alt="" /></p><p class="figCaption">Easing curve for a quadratic (t^2) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutQuad</code></td><td class="topAlign tblval"><code>3</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutquad.png" alt="" /></p><p class="figCaption">Easing curve for a quadratic (t^2) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInQuad</code></td><td class="topAlign tblval"><code>4</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinquad.png" alt="" /></p><p class="figCaption">Easing curve for a quadratic (t^2) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InCubic</code></td><td class="topAlign tblval"><code>5</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-incubic.png" alt="" /></p><p class="figCaption">Easing curve for a cubic (t^3) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutCubic</code></td><td class="topAlign tblval"><code>6</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outcubic.png" alt="" /></p><p class="figCaption">Easing curve for a cubic (t^3) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutCubic</code></td><td class="topAlign tblval"><code>7</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutcubic.png" alt="" /></p><p class="figCaption">Easing curve for a cubic (t^3) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInCubic</code></td><td class="topAlign tblval"><code>8</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outincubic.png" alt="" /></p><p class="figCaption">Easing curve for a cubic (t^3) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InQuart</code></td><td class="topAlign tblval"><code>9</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inquart.png" alt="" /></p><p class="figCaption">Easing curve for a quartic (t^4) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutQuart</code></td><td class="topAlign tblval"><code>10</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outquart.png" alt="" /></p><p class="figCaption">Easing curve for a quartic (t^4) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutQuart</code></td><td class="topAlign tblval"><code>11</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutquart.png" alt="" /></p><p class="figCaption">Easing curve for a quartic (t^4) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInQuart</code></td><td class="topAlign tblval"><code>12</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinquart.png" alt="" /></p><p class="figCaption">Easing curve for a quartic (t^4) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InQuint</code></td><td class="topAlign tblval"><code>13</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inquint.png" alt="" /></p><p class="figCaption">Easing curve for a quintic (t^5) easing in: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutQuint</code></td><td class="topAlign tblval"><code>14</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outquint.png" alt="" /></p><p class="figCaption">Easing curve for a quintic (t^5) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutQuint</code></td><td class="topAlign tblval"><code>15</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutquint.png" alt="" /></p><p class="figCaption">Easing curve for a quintic (t^5) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInQuint</code></td><td class="topAlign tblval"><code>16</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinquint.png" alt="" /></p><p class="figCaption">Easing curve for a quintic (t^5) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InSine</code></td><td class="topAlign tblval"><code>17</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-insine.png" alt="" /></p><p class="figCaption">Easing curve for a sinusoidal (sin(t)) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutSine</code></td><td class="topAlign tblval"><code>18</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outsine.png" alt="" /></p><p class="figCaption">Easing curve for a sinusoidal (sin(t)) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutSine</code></td><td class="topAlign tblval"><code>19</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutsine.png" alt="" /></p><p class="figCaption">Easing curve for a sinusoidal (sin(t)) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInSine</code></td><td class="topAlign tblval"><code>20</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinsine.png" alt="" /></p><p class="figCaption">Easing curve for a sinusoidal (sin(t)) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InExpo</code></td><td class="topAlign tblval"><code>21</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inexpo.png" alt="" /></p><p class="figCaption">Easing curve for an exponential (2^t) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutExpo</code></td><td class="topAlign tblval"><code>22</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outexpo.png" alt="" /></p><p class="figCaption">Easing curve for an exponential (2^t) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutExpo</code></td><td class="topAlign tblval"><code>23</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutexpo.png" alt="" /></p><p class="figCaption">Easing curve for an exponential (2^t) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInExpo</code></td><td class="topAlign tblval"><code>24</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinexpo.png" alt="" /></p><p class="figCaption">Easing curve for an exponential (2^t) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InCirc</code></td><td class="topAlign tblval"><code>25</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-incirc.png" alt="" /></p><p class="figCaption">Easing curve for a circular (sqrt(1-t^2)) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutCirc</code></td><td class="topAlign tblval"><code>26</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outcirc.png" alt="" /></p><p class="figCaption">Easing curve for a circular (sqrt(1-t^2)) function: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutCirc</code></td><td class="topAlign tblval"><code>27</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutcirc.png" alt="" /></p><p class="figCaption">Easing curve for a circular (sqrt(1-t^2)) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInCirc</code></td><td class="topAlign tblval"><code>28</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outincirc.png" alt="" /></p><p class="figCaption">Easing curve for a circular (sqrt(1-t^2)) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InElastic</code></td><td class="topAlign tblval"><code>29</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inelastic.png" alt="" /></p><p class="figCaption">Easing curve for an elastic (exponentially decaying sine wave) function: accelerating from zero velocity. The peak amplitude can be set with the <i>amplitude</i> parameter, and the period of decay by the <i>period</i> parameter.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutElastic</code></td><td class="topAlign tblval"><code>30</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outelastic.png" alt="" /></p><p class="figCaption">Easing curve for an elastic (exponentially decaying sine wave) function: decelerating to zero velocity. The peak amplitude can be set with the <i>amplitude</i> parameter, and the period of decay by the <i>period</i> parameter.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutElastic</code></td><td class="topAlign tblval"><code>31</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutelastic.png" alt="" /></p><p class="figCaption">Easing curve for an elastic (exponentially decaying sine wave) function: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInElastic</code></td><td class="topAlign tblval"><code>32</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinelastic.png" alt="" /></p><p class="figCaption">Easing curve for an elastic (exponentially decaying sine wave) function: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InBack</code></td><td class="topAlign tblval"><code>33</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inback.png" alt="" /></p><p class="figCaption">Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutBack</code></td><td class="topAlign tblval"><code>34</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outback.png" alt="" /></p><p class="figCaption">Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing out: decelerating to zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutBack</code></td><td class="topAlign tblval"><code>35</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutback.png" alt="" /></p><p class="figCaption">Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInBack</code></td><td class="topAlign tblval"><code>36</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinback.png" alt="" /></p><p class="figCaption">Easing curve for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InBounce</code></td><td class="topAlign tblval"><code>37</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inbounce.png" alt="" /></p><p class="figCaption">Easing curve for a bounce (exponentially decaying parabolic bounce) function: accelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutBounce</code></td><td class="topAlign tblval"><code>38</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outbounce.png" alt="" /></p><p class="figCaption">Easing curve for a bounce (exponentially decaying parabolic bounce) function: decelerating from zero velocity.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::InOutBounce</code></td><td class="topAlign tblval"><code>39</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-inoutbounce.png" alt="" /></p><p class="figCaption">Easing curve for a bounce (exponentially decaying parabolic bounce) function easing in/out: acceleration until halfway, then deceleration.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QEasingCurve::OutInBounce</code></td><td class="topAlign tblval"><code>40</code></td></tr>
</table></div>
<p class="centerAlign"><img src="images/qeasingcurve-outinbounce.png" alt="" /></p><p class="figCaption">Easing curve for a bounce (exponentially decaying parabolic bounce) function easing out/in: deceleration until halfway, then acceleration.</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>QEasingCurve::BezierSpline</code></td><td class="topAlign tblval"><code>45</code></td><td class="topAlign">Allows defining a custom easing curve using a cubic bezier spline</td></tr>
<tr><td class="topAlign"><code>QEasingCurve::TCBSpline</code></td><td class="topAlign tblval"><code>46</code></td><td class="topAlign">Allows defining a custom easing curve using a TCB spline</td></tr>
<tr><td class="topAlign"><code>QEasingCurve::Custom</code></td><td class="topAlign tblval"><code>47</code></td><td class="topAlign">This is returned if the user specified a custom curve type with <a href="qeasingcurve.html#setCustomType">setCustomType</a>(). Note that you cannot call <a href="qeasingcurve.html#setType">setType</a>() with this value, but <a href="qeasingcurve.html#type">type</a>() can return it.</td></tr>
</table></div>
<p><b>See also </b><a href="qeasingcurve.html#addCubicBezierSegment">addCubicBezierSegment</a>() and <a href="qeasingcurve.html#addTCBSegment">addTCBSegment</a>().</p>
<!-- @@@Type -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QEasingCurve[overload1]$$$QEasingCurveQEasingCurve::Type -->
<h3 class="fn" id="QEasingCurve"><a name="QEasingCurve"></a>QEasingCurve::<span class="name">QEasingCurve</span>(<span class="type"><a href="qeasingcurve.html#Type-enum">QEasingCurve::Type</a></span> <i>type</i> = Linear)</h3>
<p>Constructs an easing curve of the given <i>type</i>.</p>
<!-- @@@QEasingCurve -->
<!-- $$$QEasingCurve$$$QEasingCurveconstQEasingCurve& -->
<h3 class="fn" id="QEasingCurve-1"><a name="QEasingCurve-1"></a>QEasingCurve::<span class="name">QEasingCurve</span>(const <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>other</i>)</h3>
<p>Construct a copy of <i>other</i>.</p>
<!-- @@@QEasingCurve -->
<!-- $$$QEasingCurve$$$QEasingCurveQEasingCurve&& -->
<h3 class="fn" id="QEasingCurve-2"><a name="QEasingCurve-2"></a>QEasingCurve::<span class="name">QEasingCurve</span>(<span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-constructs a <a href="qeasingcurve.html">QEasingCurve</a> instance, making it point at the same object that <i>other</i> was pointing to.</p>
<p>This function was introduced in  Qt 5.2.</p>
<!-- @@@QEasingCurve -->
<!-- $$$~QEasingCurve[overload1]$$$~QEasingCurve -->
<h3 class="fn" id="dtor.QEasingCurve"><a name="dtor.QEasingCurve"></a>QEasingCurve::<span class="name">~QEasingCurve</span>()</h3>
<p>Destructor.</p>
<!-- @@@~QEasingCurve -->
<!-- $$$addCubicBezierSegment[overload1]$$$addCubicBezierSegmentconstQPointF&constQPointF&constQPointF& -->
<h3 class="fn" id="addCubicBezierSegment"><a name="addCubicBezierSegment"></a><span class="type">void</span> QEasingCurve::<span class="name">addCubicBezierSegment</span>(const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp;<i>c1</i>, const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp;<i>c2</i>, const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp;<i>endPoint</i>)</h3>
<p>Adds a segment of a cubic bezier spline to define a custom easing curve. It is only applicable if <a href="qeasingcurve.html#type">type</a>() is <a href="qeasingcurve.html#Type-enum">QEasingCurve::BezierSpline</a>. Note that the spline implicitly starts at (0.0, 0.0) and has to end at (1.0, 1.0) to be a valid easing curve. <i>c1</i> and <i>c2</i> are the control points used for drawing the curve. <i>endPoint</i> is the endpoint of the curve.</p>
<!-- @@@addCubicBezierSegment -->
<!-- $$$addTCBSegment[overload1]$$$addTCBSegmentconstQPointF&qrealqrealqreal -->
<h3 class="fn" id="addTCBSegment"><a name="addTCBSegment"></a><span class="type">void</span> QEasingCurve::<span class="name">addTCBSegment</span>(const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp;<i>nextPoint</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>t</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>c</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>b</i>)</h3>
<p>Adds a segment of a TCB bezier spline to define a custom easing curve. It is only applicable if <a href="qeasingcurve.html#type">type</a>() is <a href="qeasingcurve.html#Type-enum">QEasingCurve::TCBSpline</a>. The spline has to start explitly at (0.0, 0.0) and has to end at (1.0, 1.0) to be a valid easing curve. The tension <i>t</i> changes the length of the tangent vector. The continuity <i>c</i> changes the sharpness in change between the tangents. The bias <i>b</i> changes the direction of the tangent vector. <i>nextPoint</i> is the sample position. All three parameters are valid between -1 and 1 and define the tangent of the control point. If all three parameters are 0 the resulting spline is a Catmull-Rom spline. The begin and endpoint always have a bias of -1 and 1, since the outer tangent is not defined.</p>
<!-- @@@addTCBSegment -->
<!-- $$$amplitude[overload1]$$$amplitude -->
<h3 class="fn" id="amplitude"><a name="amplitude"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QEasingCurve::<span class="name">amplitude</span>() const</h3>
<p>Returns the amplitude. This is not applicable for all curve types. It is only applicable for bounce and elastic curves (curves of <a href="qeasingcurve.html#type">type</a>() <a href="qeasingcurve.html#Type-enum">QEasingCurve::InBounce</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutBounce</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::InOutBounce</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutInBounce</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::InElastic</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutElastic</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::InOutElastic</a> or <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutInElastic</a>).</p>
<p><b>See also </b><a href="qeasingcurve.html#setAmplitude">setAmplitude</a>().</p>
<!-- @@@amplitude -->
<!-- $$$customType[overload1]$$$customType -->
<h3 class="fn" id="customType"><a name="customType"></a><span class="type"><a href="qeasingcurve.html#EasingFunction-typedef">QEasingCurve::EasingFunction</a></span> QEasingCurve::<span class="name">customType</span>() const</h3>
<p>Returns the function pointer to the custom easing curve. If <a href="qeasingcurve.html#type">type</a>() does not return <a href="qeasingcurve.html#Type-enum">QEasingCurve::Custom</a>, this function will return 0.</p>
<p><b>See also </b><a href="qeasingcurve.html#setCustomType">setCustomType</a>().</p>
<!-- @@@customType -->
<!-- $$$overshoot[overload1]$$$overshoot -->
<h3 class="fn" id="overshoot"><a name="overshoot"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QEasingCurve::<span class="name">overshoot</span>() const</h3>
<p>Returns the overshoot. This is not applicable for all curve types. It is only applicable if <a href="qeasingcurve.html#type">type</a>() is <a href="qeasingcurve.html#Type-enum">QEasingCurve::InBack</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutBack</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::InOutBack</a> or <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutInBack</a>.</p>
<p><b>See also </b><a href="qeasingcurve.html#setOvershoot">setOvershoot</a>().</p>
<!-- @@@overshoot -->
<!-- $$$period[overload1]$$$period -->
<h3 class="fn" id="period"><a name="period"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QEasingCurve::<span class="name">period</span>() const</h3>
<p>Returns the period. This is not applicable for all curve types. It is only applicable if <a href="qeasingcurve.html#type">type</a>() is <a href="qeasingcurve.html#Type-enum">QEasingCurve::InElastic</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutElastic</a>, <a href="qeasingcurve.html#Type-enum">QEasingCurve::InOutElastic</a> or <a href="qeasingcurve.html#Type-enum">QEasingCurve::OutInElastic</a>.</p>
<p><b>See also </b><a href="qeasingcurve.html#setPeriod">setPeriod</a>().</p>
<!-- @@@period -->
<!-- $$$setAmplitude[overload1]$$$setAmplitudeqreal -->
<h3 class="fn" id="setAmplitude"><a name="setAmplitude"></a><span class="type">void</span> QEasingCurve::<span class="name">setAmplitude</span>(<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>amplitude</i>)</h3>
<p>Sets the amplitude to <i>amplitude</i>.</p>
<p>This will set the amplitude of the bounce or the amplitude of the elastic &quot;spring&quot; effect. The higher the number, the higher the amplitude.</p>
<p><b>See also </b><a href="qeasingcurve.html#amplitude">amplitude</a>().</p>
<!-- @@@setAmplitude -->
<!-- $$$setCustomType[overload1]$$$setCustomTypeQEasingCurve::EasingFunction -->
<h3 class="fn" id="setCustomType"><a name="setCustomType"></a><span class="type">void</span> QEasingCurve::<span class="name">setCustomType</span>(<span class="type"><a href="qeasingcurve.html#EasingFunction-typedef">QEasingCurve::EasingFunction</a></span> <i>func</i>)</h3>
<p>Sets a custom easing curve that is defined by the user in the function <i>func</i>. The signature of the function is qreal myEasingFunction(qreal progress), where <i>progress</i> and the return value are considered to be normalized between 0 and 1. (In some cases the return value can be outside that range) After calling this function <a href="qeasingcurve.html#type">type</a>() will return <a href="qeasingcurve.html#Type-enum">QEasingCurve::Custom</a>. <i>func</i> cannot be zero.</p>
<p><b>See also </b><a href="qeasingcurve.html#customType">customType</a>() and <a href="qeasingcurve.html#valueForProgress">valueForProgress</a>().</p>
<!-- @@@setCustomType -->
<!-- $$$setOvershoot[overload1]$$$setOvershootqreal -->
<h3 class="fn" id="setOvershoot"><a name="setOvershoot"></a><span class="type">void</span> QEasingCurve::<span class="name">setOvershoot</span>(<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>overshoot</i>)</h3>
<p>Sets the overshoot to <i>overshoot</i>.</p>
<p>0 produces no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent.</p>
<p><b>See also </b><a href="qeasingcurve.html#overshoot">overshoot</a>().</p>
<!-- @@@setOvershoot -->
<!-- $$$setPeriod[overload1]$$$setPeriodqreal -->
<h3 class="fn" id="setPeriod"><a name="setPeriod"></a><span class="type">void</span> QEasingCurve::<span class="name">setPeriod</span>(<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>period</i>)</h3>
<p>Sets the period to <i>period</i>. Setting a small period value will give a high frequency of the curve. A large period will give it a small frequency.</p>
<p><b>See also </b><a href="qeasingcurve.html#period">period</a>().</p>
<!-- @@@setPeriod -->
<!-- $$$setType[overload1]$$$setTypeQEasingCurve::Type -->
<h3 class="fn" id="setType"><a name="setType"></a><span class="type">void</span> QEasingCurve::<span class="name">setType</span>(<span class="type"><a href="qeasingcurve.html#Type-enum">QEasingCurve::Type</a></span> <i>type</i>)</h3>
<p>Sets the type of the easing curve to <i>type</i>.</p>
<p><b>See also </b><a href="qeasingcurve.html#type">type</a>().</p>
<!-- @@@setType -->
<!-- $$$swap[overload1]$$$swapQEasingCurve& -->
<h3 class="fn" id="swap"><a name="swap"></a><span class="type">void</span> QEasingCurve::<span class="name">swap</span>(<span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>other</i>)</h3>
<p>Swaps curve <i>other</i> with this curve. This operation is very fast and never fails.</p>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@swap -->
<!-- $$$toCubicSpline[overload1]$$$toCubicSpline -->
<h3 class="fn" id="toCubicSpline"><a name="toCubicSpline"></a><span class="type"><a href="qvector.html">QVector</a></span>&lt;<span class="type"><a href="qpointf.html">QPointF</a></span>&gt; QEasingCurve::<span class="name">toCubicSpline</span>() const</h3>
<p>Returns the cubicBezierSpline that defines a custom easing curve. If the easing curve does not have a custom bezier easing curve the list is empty.</p>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@toCubicSpline -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn" id="type"><a name="type"></a><span class="type"><a href="qeasingcurve.html#Type-enum">QEasingCurve::Type</a></span> QEasingCurve::<span class="name">type</span>() const</h3>
<p>Returns the type of the easing curve.</p>
<p><b>See also </b><a href="qeasingcurve.html#setType">setType</a>().</p>
<!-- @@@type -->
<!-- $$$valueForProgress[overload1]$$$valueForProgressqreal -->
<h3 class="fn" id="valueForProgress"><a name="valueForProgress"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QEasingCurve::<span class="name">valueForProgress</span>(<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>progress</i>) const</h3>
<p>Return the effective progress for the easing curve at <i>progress</i>. Whereas <i>progress</i> must be between 0 and 1, the returned effective progress can be outside those bounds. For example, <a href="qeasingcurve.html#Type-enum">QEasingCurve::InBack</a> will return negative values in the beginning of the function.</p>
<!-- @@@valueForProgress -->
<!-- $$$operator!=[overload1]$$$operator!=constQEasingCurve& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QEasingCurve::<span class="name">operator!=</span>(const <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>other</i>) const</h3>
<p>Compare this easing curve with <i>other</i> and returns <code>true</code> if they are not equal. It will also compare the properties of a curve.</p>
<p><b>See also </b><a href="qeasingcurve.html#operator-eq-eq">operator==</a>().</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQEasingCurve& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;QEasingCurve::<span class="name">operator=</span>(const <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>other</i>)</h3>
<p>Copy <i>other</i>.</p>
<!-- @@@operator= -->
<!-- $$$operator=$$$operator=QEasingCurve&& -->
<h3 class="fn" id="operator-eq-1"><a name="operator-eq-1"></a><span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;QEasingCurve::<span class="name">operator=</span>(<span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-assigns <i>other</i> to this <a href="qeasingcurve.html">QEasingCurve</a> instance.</p>
<p>This function was introduced in  Qt 5.2.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQEasingCurve& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QEasingCurve::<span class="name">operator==</span>(const <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>other</i>) const</h3>
<p>Compare this easing curve with <i>other</i> and returns <code>true</code> if they are equal. It will also compare the properties of a curve.</p>
<!-- @@@operator== -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<[overload1]$$$operator<<QDataStream&constQEasingCurve& -->
<h3 class="fn" id="operator-lt-lt"><a name="operator-lt-lt"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&lt;&lt;</span>(<span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<i>stream</i>, const <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>easing</i>)</h3>
<p>Writes the given <i>easing</i> curve to the given <i>stream</i> and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>[overload1]$$$operator>>QDataStream&QEasingCurve& -->
<h3 class="fn" id="operator-gt-gt"><a name="operator-gt-gt"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&gt;&gt;</span>(<span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<i>stream</i>, <span class="type"><a href="qeasingcurve.html#QEasingCurve">QEasingCurve</a></span> &amp;<i>easing</i>)</h3>
<p>Reads an easing curve from the given <i>stream</i> into the given <i>easing</i> curve and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</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>