IDisplay.h
Go to the documentation of this file.
1 #ifndef iview_IDisplay_included
2 #define iview_IDisplay_included
3 
4 
5 #include <i2d/CRect.h>
6 
7 #include <iview/IShapeObserver.h>
8 
9 
10 namespace iview
11 {
12 
13 
14 class CScreenTransform;
15 class IColorSchema;
16 
17 
18 class IDisplay: public IShapeObserver
19 {
20 public:
25  {
29  CF_TRANSFORM = 0x3f67360,
30 
35 
40 
49  };
50 
55  virtual IDisplay* GetParentDisplayPtr() const = 0;
56 
61  virtual const iview::CScreenTransform& GetTransform() const = 0;
62 
66  virtual i2d::CRect GetBoundingBox() const = 0;
67 
71  virtual i2d::CRect GetClientRect() const = 0;
72 
76  virtual const IColorSchema& GetColorSchema() const = 0;
77 
83  virtual void OnAreaInvalidated(const i2d::CRect& prevArea, const i2d::CRect& newArea) = 0;
84 };
85 
86 
87 } // namespace iview
88 
89 
90 #endif // !iview_IDisplay_included
91 
92 
virtual void OnAreaInvalidated(const i2d::CRect &prevArea, const i2d::CRect &newArea)=0
Invalidate display area.
Indicate, that changes come from display console shapes.
Definition: IDisplay.h:48
ChangeFlags
Define possible display change flags.
Definition: IDisplay.h:24
View colors are changed.
Definition: IDisplay.h:34
Edit mode is changed.
Definition: IDisplay.h:44
View size is changed.
Definition: IDisplay.h:39
Simple rectangle with integer bounds.
Definition: CRect.h:21
virtual i2d::CRect GetClientRect() const =0
Get bounding box of client area.
virtual const iview::CScreenTransform & GetTransform() const =0
Return a screen transformation.
View transform is changed.
Definition: IDisplay.h:29
virtual i2d::CRect GetBoundingBox() const =0
Get bounding box of all object in this display.
Common interface for all objects informed about shapes state changes.
virtual const IColorSchema & GetColorSchema() const =0
Get color schema.
virtual IDisplay * GetParentDisplayPtr() const =0
Get parent object of this display.
Defines set of standard pens, brushes and simple management of unions.
Definition: IColorSchema.h:28

© 2007-2017 Witold Gantzke and Kirill Lepskiy