]> Shamusworld >> Repos - architektonas/blobdiff - src/circle.h
Added ability to translate groups with Lines.
[architektonas] / src / circle.h
index e4b384526a484fc4a5abffaed40bdd68e64511c6..1f0d38723836822e32ba82089f163dfde45ca9c2 100644 (file)
@@ -9,23 +9,31 @@ class Circle: public Object
                Circle(Vector, double, Object * p = 0);
                ~Circle();
 
-               virtual void Draw(QPainter *);
+               virtual void Draw(Painter *);
                virtual Vector Center(void);
                virtual bool Collided(Vector);
                virtual void PointerMoved(Vector);
                virtual void PointerReleased(void);
-//             virtual bool NeedsUpdate(void);
+               virtual bool HitTest(Point);
+               virtual void Enumerate(FILE *);
+               virtual QRectF Extents(void);
+//             virtual Object * Copy(void);
+//             virtual ObjectType Type(void);
+
+       protected:
+               void SaveState(void);
+               bool StateChanged(void);
 
        protected:
                double radius;                                          // Center is Object::position
-               Vector oldPoint;                                        // Used for dragging
+               Vector dragPoint;                                       // Used for rendering edge dragging
 
        private:
-               bool dragging;
-               bool draggingHandle1;
-               bool draggingHandle2;
-//             bool needUpdate;
+               bool draggingEdge;
+               bool draggingCenter;
                bool objectWasDragged;
+               bool hitCenter, hitCircle;
+               bool oldHitCenter, oldHitCircle;
 };
 
 #endif // __CIRCLE_H__