]> Shamusworld >> Repos - architektonas/blobdiff - src/object.h
Trim tool now works for Lines, but inaccurate.
[architektonas] / src / object.h
index 08b7e9dc9f9324c79a3c9da6d6f6aedc0f287438..f7d5d7c0a493b02c31d07070ef7bcdcc511e0baf 100644 (file)
@@ -27,7 +27,7 @@ class Object
                virtual void Draw(Painter *);
                virtual Vector Center(void);
                virtual bool Collided(Vector);
-               virtual void PointerMoved(Vector);
+               virtual bool PointerMoved(Vector);
                virtual void PointerReleased(void);
                virtual bool NeedsUpdate(void);
                virtual bool HitTest(Point);
@@ -62,8 +62,9 @@ class Object
                static void SetSnapMode(bool state = true);
                static Vector SnapPointToGrid(Vector);
 
-       protected:
+       public:
                Vector position;                                        // All objects have a position (doubles as reference point)
+       protected:
                Object * parent;
 //this needs to be added eventually
 //             Pen pen;