Download this file
40 lines (33 with data), 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 | #ifndef ANIMPOINT_H
#define ANIMPOINT_H
#include <QPointF>
class AnimPoint: public QPointF
{
public:
AnimPoint();
void operator= ( const AnimPoint & );
void operator= ( const QPointF & );
bool operator== ( const QPointF & );
bool operator== ( AnimPoint );
void init();
void copy(AnimPoint other);
void setStart (const QPointF &);
QPointF getStart();
void setDest (const QPointF &);
QPointF getDest();
void setTicks (const uint &t);
uint getTicks();
void setAnimated(bool);
bool isAnimated ();
bool animate();
void stop();
private:
void initVector();
QPointF startPos;
QPointF destPos;
QPointF vector;
qreal n;
uint animTicks;
bool animated;
};
#endif
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.