1 #ifndef DRAWINGOBJECT_H
2 #define DRAWINGOBJECT_H
9 #include "MovableRect.h"
16 void Draw( wxClientDC & dc,
const DrawingObject * selected )
const;
18 bool Contains( wxMouseEvent & e );
19 virtual void Move( wxMouseEvent & e );
23 virtual void DrawClient( wxClientDC & dc,
bool isSelected )
const = 0;
24 virtual std::vector<MovableRect *> ContainsClient(
const Point & naturalClick ) = 0;
25 Point GetPointNatural( wxMouseEvent & e )
const;
27 std::vector<MovableRect> m_rects;
28 std::vector<MovableRect *> m_chosenRects;
30 const double & m_zoom;
31 const Canvas & m_canvas;
36 void StoreMouseClick( wxMouseEvent & e );
42 #endif // DRAWINGOBJECT_H