QEasingCurve Class Reference

QEasingCurve Class Reference

#include <qeasingcurve.h>

Class Description

Definition at line 55 of file qeasingcurve.h.

Public Types

enum  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, Custom, NCurveTypes
}
 
typedef qreal(* EasingFunction) (qreal progress)
 

Public Member Functions

 QEasingCurve (Type type=Linear)
 
 QEasingCurve (const QEasingCurve &other)
 
 ~QEasingCurve ()
 
QEasingCurveoperator= (const QEasingCurve &other)
 
bool operator== (const QEasingCurve &other) const
 
bool operator!= (const QEasingCurve &other) const
 
qreal amplitude () const
 
void setAmplitude (qreal amplitude)
 
qreal period () const
 
void setPeriod (qreal period)
 
qreal overshoot () const
 
void setOvershoot (qreal overshoot)
 
Type type () const
 
void setType (Type type)
 
void setCustomType (EasingFunction func)
 
EasingFunction customType () const
 
qreal valueForProgress (qreal progress) const
 

Friends

Q_CORE_EXPORT QDebug operator<< (QDebug debug, const QEasingCurve &item)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QEasingCurve &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QEasingCurve &)
 

Member Typedef Documentation

typedef qreal(* EasingFunction) (qreal progress)

Definition at line 96 of file qeasingcurve.h.

Member Enumeration Documentation

enum Type
Enumerator
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 
Custom 
NCurveTypes 

Definition at line 60 of file qeasingcurve.h.

60  {
61  Linear,
74  };

Constructor & Destructor Documentation

QEasingCurve ( Type  type = Linear)
QEasingCurve ( const QEasingCurve other)

Member Function Documentation

QEasingCurve& operator= ( const QEasingCurve other)
bool operator== ( const QEasingCurve other) const
bool operator!= ( const QEasingCurve other) const
inline

Definition at line 82 of file qeasingcurve.h.

83  { return !(this->operator==(other)); }
bool operator==(const QEasingCurve &other) const
qreal amplitude ( ) const
void setAmplitude ( qreal  amplitude)
qreal period ( ) const
void setPeriod ( qreal  period)
qreal overshoot ( ) const
void setOvershoot ( qreal  overshoot)
Type type ( ) const
void setType ( Type  type)
void setCustomType ( EasingFunction  func)
EasingFunction customType ( ) const
qreal valueForProgress ( qreal  progress) const

Friends And Related Function Documentation

Q_CORE_EXPORT QDebug operator<< ( QDebug  debug,
const QEasingCurve item 
)
friend
Q_CORE_EXPORT QDataStream& operator<< ( QDataStream ,
const QEasingCurve  
)
friend
Q_CORE_EXPORT QDataStream& operator>> ( QDataStream ,
QEasingCurve  
)
friend

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