34 explicit QQuickAnimatedNode(QQuickItem *target);
36 bool isRunning()
const;
38 int currentTime()
const;
39 void setCurrentTime(
int time);
42 void setDuration(
int duration);
44 enum LoopCount { Infinite = -1 };
46 int loopCount()
const;
47 void setLoopCount(
int count);
49 virtual void sync(QQuickItem *target);
51 QQuickWindow *window()
const;
54 void start(
int duration = 0);
63 virtual void updateCurrentTime(
int time);
70 bool m_running =
false;
73 int m_currentTime = 0;
74 int m_currentLoop = 0;
75 QElapsedTimer m_timer;
76 QQuickWindow *m_window =
nullptr;