X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.h;h=efcffe1f00bd34990cb15102f19a8759990cace6;hb=baf67656b97e3d61e9223e66ebe4f554e364cd4a;hp=8b047be15ab92c0839012fa3f53f22a42098cafd;hpb=d41ddd699001f6bbf6ac621f5c467bd13efb6087;p=architektonas diff --git a/src/object.h b/src/object.h index 8b047be..efcffe1 100644 --- a/src/object.h +++ b/src/object.h @@ -4,7 +4,7 @@ #include // This is a container #include "vector.h" // This is the mathematical construct -class QPainter; +class Painter; class QFont; class Dimension; @@ -17,7 +17,7 @@ class Object Object(Vector, Object * passedInParent = 0); ~Object(); - virtual void Draw(QPainter *); + virtual void Draw(Painter *); virtual Vector Center(void); virtual bool Collided(Vector); virtual void PointerMoved(Vector); @@ -26,7 +26,10 @@ class Object virtual void Transmute(Object *, Object *); virtual Object * GetParent(void); virtual void Add(Object *); + virtual Vector * GetPointAt(Vector); ObjectState GetState(void); + void Reparent(Object *); + Dimension * GetAttachedDimension(void); //Hm. Object * Connect(Object *); // Class methods @@ -36,6 +39,7 @@ class Object static void SetViewportHeight(int); static void SetDeleteActive(bool state = true); static void SetDimensionActive(bool state = true); + static void SetSnapMode(bool state = true); protected: Vector position; // All objects have a position (doubles as reference point) @@ -55,6 +59,7 @@ class Object static int viewportHeight; static bool deleteActive; static bool dimensionActive; + static bool snapToGrid; }; #endif // __OBJECT_H__