QTimeLine Class Reference

#include <qtimeline.h>

Class Description

Definition at line 55 of file qtimeline.h.

+ Inheritance diagram for QTimeLine:

Public Types

enum  State { NotRunning, Paused, Running }
 
enum  Direction { Forward, Backward }
 
enum  CurveShape {
  EaseInCurve, EaseOutCurve, EaseInOutCurve, LinearCurve,
  SineCurve, CosineCurve
}
 

Public Slots

void start ()
 
void resume ()
 
void stop ()
 
void setPaused (bool paused)
 
void setCurrentTime (int msec)
 
void toggleDirection ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void valueChanged (qreal x)
 
void frameChanged (int)
 
void stateChanged (QTimeLine::State newState)
 
void finished ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QTimeLine (int duration=1000, QObject *parent=0)
 
virtual ~QTimeLine ()
 
State state () const
 
int loopCount () const
 
void setLoopCount (int count)
 
Direction direction () const
 
void setDirection (Direction direction)
 
int duration () const
 
void setDuration (int duration)
 
int startFrame () const
 
void setStartFrame (int frame)
 
int endFrame () const
 
void setEndFrame (int frame)
 
void setFrameRange (int startFrame, int endFrame)
 
int updateInterval () const
 
void setUpdateInterval (int interval)
 
CurveShape curveShape () const
 
void setCurveShape (CurveShape shape)
 
QEasingCurve easingCurve () const
 
void setEasingCurve (const QEasingCurve &curve)
 
int currentTime () const
 
int currentFrame () const
 
qreal currentValue () const
 
int frameForTime (int msec) const
 
virtual qreal valueForTime (int msec) const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

int duration
 
int updateInterval
 
int currentTime
 
Direction direction
 
int loopCount
 
CurveShape curveShape
 
QEasingCurve easingCurve
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

enum State
Enumerator
NotRunning 
Paused 
Running 

Definition at line 66 of file qtimeline.h.

enum Direction
Enumerator
Forward 
Backward 

Definition at line 71 of file qtimeline.h.

71  {
72  Forward,
73  Backward
74  };
enum CurveShape
Enumerator
EaseInCurve 
EaseOutCurve 
EaseInOutCurve 
LinearCurve 
SineCurve 
CosineCurve 

Definition at line 75 of file qtimeline.h.

Constructor & Destructor Documentation

QTimeLine ( int  duration = 1000,
QObject parent = 0 
)
explicit
virtual ~QTimeLine ( )
virtual

Member Function Documentation

State state ( ) const
int loopCount ( ) const
void setLoopCount ( int  count)
Direction direction ( ) const
void setDirection ( Direction  direction)
int duration ( ) const
void setDuration ( int  duration)
int startFrame ( ) const
void setStartFrame ( int  frame)
int endFrame ( ) const
void setEndFrame ( int  frame)
void setFrameRange ( int  startFrame,
int  endFrame 
)
int updateInterval ( ) const
void setUpdateInterval ( int  interval)
CurveShape curveShape ( ) const
void setCurveShape ( CurveShape  shape)
QEasingCurve easingCurve ( ) const
void setEasingCurve ( const QEasingCurve curve)
int currentTime ( ) const
int currentFrame ( ) const
qreal currentValue ( ) const
int frameForTime ( int  msec) const
virtual qreal valueForTime ( int  msec) const
virtual
void start ( )
slot
void resume ( )
slot
void stop ( )
slot
void setPaused ( bool  paused)
slot
void setCurrentTime ( int  msec)
slot
void toggleDirection ( )
slot
void valueChanged ( qreal  x)
signal
void frameChanged ( int  )
signal
void stateChanged ( QTimeLine::State  newState)
signal
void finished ( )
signal
void timerEvent ( QTimerEvent event)
protectedvirtual

Reimplemented from QObject.

Property Documentation

int duration
readwrite

Definition at line 58 of file qtimeline.h.

int updateInterval
readwrite

Definition at line 59 of file qtimeline.h.

int currentTime
readwrite

Definition at line 60 of file qtimeline.h.

Direction direction
readwrite

Definition at line 61 of file qtimeline.h.

int loopCount
readwrite

Definition at line 62 of file qtimeline.h.

CurveShape curveShape
readwrite

Definition at line 63 of file qtimeline.h.

QEasingCurve easingCurve
readwrite

Definition at line 64 of file qtimeline.h.


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