Qt 4.8
Public Functions | List of all members
ElasticEase Struct Reference
Inheritance diagram for ElasticEase:
QEasingCurveFunction

Public Functions

QEasingCurveFunctioncopy () const
 
 ElasticEase (Type type)
 
qreal value (qreal t)
 
- Public Functions inherited from QEasingCurveFunction
bool operator== (const QEasingCurveFunction &other)
 
 QEasingCurveFunction (QEasingCurveFunction::Type type=In, qreal period=0.3, qreal amplitude=1.0, qreal overshoot=1.70158)
 
virtual ~QEasingCurveFunction ()
 

Additional Inherited Members

- Public Types inherited from QEasingCurveFunction
enum  Type { In, Out, InOut, OutIn }
 
- Public Variables inherited from QEasingCurveFunction
qreal _a
 
qreal _o
 
qreal _p
 
Type _t
 

Detailed Description

Definition at line 395 of file qeasingcurve.cpp.

Constructors and Destructors

◆ ElasticEase()

ElasticEase::ElasticEase ( Type  type)
inline

Definition at line 397 of file qeasingcurve.cpp.

398  : QEasingCurveFunction(type, qreal(0.3), qreal(1.0))
399  { }
QEasingCurveFunction(QEasingCurveFunction::Type type=In, qreal period=0.3, qreal amplitude=1.0, qreal overshoot=1.70158)
int type
Definition: qmetatype.cpp:239
double qreal
Definition: qglobal.h:1193

Functions

◆ copy()

QEasingCurveFunction* ElasticEase::copy ( ) const
inlinevirtual

Reimplemented from QEasingCurveFunction.

Definition at line 401 of file qeasingcurve.cpp.

402  {
403  ElasticEase *rv = new ElasticEase(_t);
404  rv->_p = _p;
405  rv->_a = _a;
406  return rv;
407  }
ElasticEase(Type type)

◆ value()

qreal ElasticEase::value ( qreal  t)
inlinevirtual

Reimplemented from QEasingCurveFunction.

Definition at line 409 of file qeasingcurve.cpp.

410  {
411  qreal p = (_p < 0) ? qreal(0.3) : _p;
412  qreal a = (_a < 0) ? qreal(1.0) : _a;
413  switch(_t) {
414  case In:
415  return easeInElastic(t, a, p);
416  case Out:
417  return easeOutElastic(t, a, p);
418  case InOut:
419  return easeInOutElastic(t, a, p);
420  case OutIn:
421  return easeOutInElastic(t, a, p);
422  default:
423  return t;
424  }
425  }
double qreal
Definition: qglobal.h:1193
long ASN1_INTEGER_get ASN1_INTEGER * a

The documentation for this struct was generated from the following file: