X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.h;fp=src%2Fcircle.h;h=e4b384526a484fc4a5abffaed40bdd68e64511c6;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=0000000000000000000000000000000000000000;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/circle.h b/src/circle.h new file mode 100644 index 0000000..e4b3845 --- /dev/null +++ b/src/circle.h @@ -0,0 +1,31 @@ +#ifndef __CIRCLE_H__ +#define __CIRCLE_H__ + +#include "object.h" + +class Circle: public Object +{ + public: + Circle(Vector, double, Object * p = 0); + ~Circle(); + + virtual void Draw(QPainter *); + virtual Vector Center(void); + virtual bool Collided(Vector); + virtual void PointerMoved(Vector); + virtual void PointerReleased(void); +// virtual bool NeedsUpdate(void); + + protected: + double radius; // Center is Object::position + Vector oldPoint; // Used for dragging + + private: + bool dragging; + bool draggingHandle1; + bool draggingHandle2; +// bool needUpdate; + bool objectWasDragged; +}; + +#endif // __CIRCLE_H__