Version: 0.6.0
drawobject.h
1 // Name: drawobject.h
3 // Purpose:
4 // Author: Moskvichev Andrey V.
5 // Created: 2008/11/07
6 // Copyright: (c) 2008-2010 Moskvichev Andrey V.
7 // Licence: wxWidgets licence
9 
10 #ifndef DRAWOBJECT_H_
11 #define DRAWOBJECT_H_
12 
13 #include <wx/observable.h>
14 
15 #define wxNoBrush *wxTheBrushList->FindOrCreateBrush(*wxBLACK, wxTRANSPARENT)
16 #define wxNoPen *wxThePenList->FindOrCreatePen(*wxBLACK, 1, wxTRANSPARENT)
17 
18 class WXDLLIMPEXP_FREECHART DrawObject;
19 
23 class WXDLLIMPEXP_FREECHART DrawObserver
24 {
25 public:
26  DrawObserver()
27  {
28  }
29 
30  virtual ~DrawObserver()
31  {
32  }
33 
38  virtual void NeedRedraw(DrawObject *obj) = 0;
39 };
40 
45 class WXDLLIMPEXP_FREECHART DrawObject : public Observable<DrawObserver>
46 {
47 public:
48  DrawObject()
49  {
50  }
51 
52  virtual ~DrawObject()
53  {
54  }
55 
56 protected:
57  FIRE_WITH_THIS(NeedRedraw);
58 };
59 
60 #endif /*DRAWOBJECT_H_*/
Definition: observable.h:14
Definition: drawobject.h:23
Definition: drawobject.h:45