File: animpoint.h

package info (click to toggle)
vym 1.10.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,376 kB
  • ctags: 1,926
  • sloc: cpp: 18,468; xml: 277; sh: 211; perl: 89; makefile: 26
file content (29 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
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
#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 setDest (const QPointF &);
	void setAnimated(bool);
	bool isAnimated ();
	void animate();

private:
	QPointF currentPos;
	QPointF destPos;
	qreal n;
    bool animated;

};

#endif