ICF 3.1.1.10
Technical documentation of ICF Libraries
ITouchable.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_ITouchable_included
7#define iview_ITouchable_included
8
9
10#include <istd/IPolymorphic.h>
11
12#include <iview/iview.h>
13
14
15namespace iview
16{
17
18
22class ITouchable: virtual public istd::IPolymorphic
23{
24public:
25
60
66 virtual TouchState IsTouched(istd::CIndex2d position) const = 0;
67
71 virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const = 0;
72};
73
74
75} // namespace iview
76
77
78#endif // !iview_ITouchable_included
79
80
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:25
This interface describes all untransparent GUI objects, which can be touched.
Definition ITouchable.h:23
virtual TouchState IsTouched(istd::CIndex2d position) const =0
Check, if any shape is touched.
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const =0
Get description to shape at specified position.
TouchState
Enumeration for possible shape touch states.
Definition ITouchable.h:30
@ TS_DRAGGABLE
Draggable element is touched.
Definition ITouchable.h:50
@ TS_OTHER
Other element is touched.
Definition ITouchable.h:54
@ TS_TRANSPARENT
Transparent part is touched.
Definition ITouchable.h:38
@ TS_NONE
Nothing is touched.
Definition ITouchable.h:34
@ TS_INACTIVE
Inactive element is touched.
Definition ITouchable.h:42
@ TS_LAST
Last value in this enum.
Definition ITouchable.h:58
@ TS_TICKER
Ticker is touched.
Definition ITouchable.h:46
In this library is defined 2D view concept and standard visualisation objects.

© Witold Gantzke and Kirill Lepskiy