42 #ifndef QDECLARATIVETIMELINE_H 43 #define QDECLARATIVETIMELINE_H 56 #include <QtCore/QObject> 57 #include <QtCore/QAbstractAnimation> 81 int accel(QDeclarativeTimeLineValue &,
qreal velocity,
qreal accel);
82 int accel(QDeclarativeTimeLineValue &,
qreal velocity,
qreal accel,
qreal maxDistance);
85 void move(QDeclarativeTimeLineValue &,
qreal destination,
int time = 500);
86 void move(QDeclarativeTimeLineValue &,
qreal destination,
const QEasingCurve &,
int time = 500);
87 void moveBy(QDeclarativeTimeLineValue &,
qreal change,
int time = 500);
88 void moveBy(QDeclarativeTimeLineValue &,
qreal change,
const QEasingCurve &,
int time = 500);
91 void setSyncPoint(
int);
92 int syncPoint()
const;
94 void sync(QDeclarativeTimeLineValue &);
95 void sync(QDeclarativeTimeLineValue &, QDeclarativeTimeLineValue &);
97 void reset(QDeclarativeTimeLineValue &);
101 bool isActive()
const;
142 operator qreal()
const {
return _v; }
153 typedef void (*Callback)(
void *);
188 if (_setFunctionReal) (_class->*_setFunctionReal)(v);
189 else if (_setFunctionInt) (_class->*_setFunctionInt)((
int)v);
195 void (T::*_setFunctionInt)(int);
QDeclarativeTimeLineObject * d2
static void callback(AuServer *, AuEventHandlerRec *, AuEvent *e, AuPointer p)
virtual void updateCurrentTime(int currentTime)=0
This pure virtual function is called every time the animation's currentTime changes.
virtual void setValue(qreal v)
Set the current value.
#define QT_END_NAMESPACE
This macro expands to.
The QEasingCurve class provides easing curves for controlling animation.
Q_CORE_EXPORT QTextStream & reset(QTextStream &s)
static void clear(QVariant::Private *d)
QDeclarativeTimeLineValue(qreal v=0.)
Construct a new QDeclarativeTimeLineValue with an initial value.
QDeclarativeTimeLine * timeLine() const
If a QDeclarativeTimeLine is operating on this value, return a pointer to it, otherwise return null...
The QObject class is the base class of all Qt objects.
The QDeclarativeTimeLineValue class provides a value that can be modified by QDeclarativeTimeLine.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDeclarativeTimeLineValueProxy(T *cls, void(T::*func)(int), qreal v=0.)
virtual qreal value() const
Return the current value.
The QAbstractAnimation class is the base of all animations.
QDeclarativeTimeLine * _t
QDeclarativeTimeLinePrivate * d
QDeclarativeTimeLineValue & operator=(qreal v)
The QDeclarativeTimeLine class provides a timeline for controlling animations.
#define Q_AUTOTEST_EXPORT
void pause()
Pauses the animation.
QDeclarativeTimeLineValueProxy(T *cls, void(T::*func)(qreal), qreal v=0.)
virtual int duration() const =0
virtual void setValue(qreal v)
Set the current value.