ACF $AcfVersion:0$
IDisplay.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5#include <i2d/CRect.h>
6
8
9
10namespace iview
11{
12
13
14class CScreenTransform;
15class IColorSchema;
16
17
19{
20public:
56
61 virtual IDisplay* GetParentDisplayPtr() const = 0;
62
67 virtual const iview::CScreenTransform& GetTransform() const = 0;
68
72 virtual i2d::CRect GetBoundingBox() const = 0;
73
77 virtual i2d::CRect GetClientRect() const = 0;
78
82 virtual const IColorSchema& GetColorSchema() const = 0;
83
89 virtual void OnAreaInvalidated(const i2d::CRect& prevArea, const i2d::CRect& newArea) = 0;
90};
91
92
93} // namespace iview
94
95
96
97
Simple rectangle with integer bounds.
Definition CRect.h:22
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:25
@ CF_SIZE
View size is changed.
Definition IDisplay.h:39
@ CS_CONSOLE
Indicate, that changes come from display console shapes.
Definition IDisplay.h:54
@ CF_COLORS
View colors are changed.
Definition IDisplay.h:34
@ CF_DISPLAY_MODE
Display mode is changed.
Definition IDisplay.h:49
@ CF_EDIT_MODE
Edit mode is changed.
Definition IDisplay.h:44
@ CF_TRANSFORM
View transform is changed.
Definition IDisplay.h:29
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.