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

Public Functions

 BackEase (Type type)
 
QEasingCurveFunctioncopy () const
 
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 459 of file qeasingcurve.cpp.

Constructors and Destructors

◆ BackEase()

BackEase::BackEase ( Type  type)
inline

Definition at line 461 of file qeasingcurve.cpp.

462  : QEasingCurveFunction(type, qreal(0.3), qreal(1.0), qreal(1.70158))
463  { }
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* BackEase::copy ( ) const
inlinevirtual

Reimplemented from QEasingCurveFunction.

Definition at line 465 of file qeasingcurve.cpp.

466  {
467  BackEase *rv = new BackEase(_t);
468  rv->_o = _o;
469  return rv;
470  }
BackEase(Type type)

◆ value()

qreal BackEase::value ( qreal  t)
inlinevirtual

Reimplemented from QEasingCurveFunction.

Definition at line 472 of file qeasingcurve.cpp.

473  {
474  qreal o = (_o < 0) ? qreal(1.70158) : _o;
475  switch(_t) {
476  case In:
477  return easeInBack(t, o);
478  case Out:
479  return easeOutBack(t, o);
480  case InOut:
481  return easeInOutBack(t, o);
482  case OutIn:
483  return easeOutInBack(t, o);
484  default:
485  return t;
486  }
487  }
double qreal
Definition: qglobal.h:1193

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