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

Public Functions

 BounceEase (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 428 of file qeasingcurve.cpp.

Constructors and Destructors

◆ BounceEase()

BounceEase::BounceEase ( Type  type)
inline

Definition at line 430 of file qeasingcurve.cpp.

431  : QEasingCurveFunction(type, qreal(0.3), qreal(1.0))
432  { }
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* BounceEase::copy ( ) const
inlinevirtual

Reimplemented from QEasingCurveFunction.

Definition at line 434 of file qeasingcurve.cpp.

435  {
436  BounceEase *rv = new BounceEase(_t);
437  rv->_a = _a;
438  return rv;
439  }
BounceEase(Type type)

◆ value()

qreal BounceEase::value ( qreal  t)
inlinevirtual

Reimplemented from QEasingCurveFunction.

Definition at line 441 of file qeasingcurve.cpp.

442  {
443  qreal a = (_a < 0) ? qreal(1.0) : _a;
444  switch(_t) {
445  case In:
446  return easeInBounce(t, a);
447  case Out:
448  return easeOutBounce(t, a);
449  case InOut:
450  return easeInOutBounce(t, a);
451  case OutIn:
452  return easeOutInBounce(t, a);
453  default:
454  return t;
455  }
456  }
double qreal
Definition: qglobal.h:1193
long ASN1_INTEGER_get ASN1_INTEGER * a

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