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