PythonQtWrapper_QTimeLine.h
50 lines
| 2.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTIMELINE_H | ||
#define PYTHONQTWRAPPER_QTIMELINE_H | ||||
#include <qtimeline.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qtimeline.h> | ||||
class PythonQtWrapper_QTimeLine : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Direction CurveShape State ) | ||||
enum Direction{ | ||||
Forward = QTimeLine::Forward, Backward = QTimeLine::Backward}; | ||||
enum CurveShape{ | ||||
EaseInCurve = QTimeLine::EaseInCurve, EaseOutCurve = QTimeLine::EaseOutCurve, EaseInOutCurve = QTimeLine::EaseInOutCurve, LinearCurve = QTimeLine::LinearCurve, SineCurve = QTimeLine::SineCurve, CosineCurve = QTimeLine::CosineCurve}; | ||||
enum State{ | ||||
NotRunning = QTimeLine::NotRunning, Paused = QTimeLine::Paused, Running = QTimeLine::Running}; | ||||
public slots: | ||||
QTimeLine* new_QTimeLine(int duration = 1000, QObject* parent = 0); | ||||
void delete_QTimeLine(QTimeLine* obj) { delete obj; } | ||||
int currentFrame(QTimeLine* theWrappedObject) const; | ||||
int currentTime(QTimeLine* theWrappedObject) const; | ||||
qreal currentValue(QTimeLine* theWrappedObject) const; | ||||
QTimeLine::CurveShape curveShape(QTimeLine* theWrappedObject) const; | ||||
QTimeLine::Direction direction(QTimeLine* theWrappedObject) const; | ||||
int duration(QTimeLine* theWrappedObject) const; | ||||
int endFrame(QTimeLine* theWrappedObject) const; | ||||
int frameForTime(QTimeLine* theWrappedObject, int msec) const; | ||||
int loopCount(QTimeLine* theWrappedObject) const; | ||||
void setCurveShape(QTimeLine* theWrappedObject, QTimeLine::CurveShape shape); | ||||
void setDirection(QTimeLine* theWrappedObject, QTimeLine::Direction direction); | ||||
void setDuration(QTimeLine* theWrappedObject, int duration); | ||||
void setEndFrame(QTimeLine* theWrappedObject, int frame); | ||||
void setFrameRange(QTimeLine* theWrappedObject, int startFrame, int endFrame); | ||||
void setLoopCount(QTimeLine* theWrappedObject, int count); | ||||
void setStartFrame(QTimeLine* theWrappedObject, int frame); | ||||
void setUpdateInterval(QTimeLine* theWrappedObject, int interval); | ||||
int startFrame(QTimeLine* theWrappedObject) const; | ||||
QTimeLine::State state(QTimeLine* theWrappedObject) const; | ||||
int updateInterval(QTimeLine* theWrappedObject) const; | ||||
qreal valueForTime(QTimeLine* theWrappedObject, int msec) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QTIMELINE_H | ||||