ICF 3.1.1.10
Technical documentation of ICF Libraries
IDisplay.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iview_IDisplay_included
7#define iview_IDisplay_included
8
9
10#include <i2d/CRect.h>
11
13
14
15namespace iview
16{
17
18
19class CScreenTransform;
20class IColorSchema;
21
22
24{
25public:
55
60 virtual IDisplay* GetParentDisplayPtr() const = 0;
61
66 virtual const iview::CScreenTransform& GetTransform() const = 0;
67
71 virtual i2d::CRect GetBoundingBox() const = 0;
72
76 virtual i2d::CRect GetClientRect() const = 0;
77
81 virtual const IColorSchema& GetColorSchema() const = 0;
82
88 virtual void OnAreaInvalidated(const i2d::CRect& prevArea, const i2d::CRect& newArea) = 0;
89};
90
91
92} // namespace iview
93
94
95#endif // !iview_IDisplay_included
96
97
Simple rectangle with integer bounds.
Definition CRect.h:26
Defines set of standard pens, brushes and simple management of unions.
virtual i2d::CRect GetBoundingBox() const =0
Get bounding box of all object in this display.
virtual void OnAreaInvalidated(const i2d::CRect &prevArea, const i2d::CRect &newArea)=0
Invalidate display area.
virtual const IColorSchema & GetColorSchema() const =0
Get color schema.
ChangeFlags
Define possible display change flags.
Definition IDisplay.h:30
@ CF_SIZE
View size is changed.
Definition IDisplay.h:44
@ CS_CONSOLE
Indicate, that changes come from display console shapes.
Definition IDisplay.h:53
@ CF_COLORS
View colors are changed.
Definition IDisplay.h:39
@ CF_EDIT_MODE
Edit mode is changed.
Definition IDisplay.h:49
@ CF_TRANSFORM
View transform is changed.
Definition IDisplay.h:34
virtual IDisplay * GetParentDisplayPtr() const =0
Get parent object of this display.
virtual const iview::CScreenTransform & GetTransform() const =0
Return a screen transformation.
virtual i2d::CRect GetClientRect() const =0
Get bounding box of client area.
Common interface for all objects informed about shapes state changes.
In this library is defined 2D view concept and standard visualisation objects.

© Witold Gantzke and Kirill Lepskiy