]> git.sven.stormbind.net Git - sven/vym.git/blob - src/animpoint.h
New upstream version 2.9.22
[sven/vym.git] / src / animpoint.h
1 #ifndef ANIMPOINT_H
2 #define ANIMPOINT_H
3
4 #include <QPointF>
5
6 class AnimPoint : public QPointF {
7   public:
8     AnimPoint();
9     void operator=(const AnimPoint &);
10     void operator=(const QPointF &);
11     bool operator==(const QPointF &);
12     bool operator==(AnimPoint);
13     void init();
14     void copy(AnimPoint other);
15     void setStart(const QPointF &);
16     QPointF getStart();
17     void setDest(const QPointF &);
18     QPointF getDest();
19     void setTicks(const uint &t);
20     uint getTicks();
21     void setAnimated(bool);
22     bool isAnimated();
23     bool animate();
24     void stop();
25
26   private:
27     void initVector();
28
29     QPointF startPos;
30     QPointF destPos;
31     QPointF vector;
32     qreal n;
33     uint animTicks;
34     bool animated;
35 };
36
37 #endif