ITouchable.h
Go to the documentation of this file.
1 #ifndef iview_ITouchable_included
2 #define iview_ITouchable_included
3 
4 
5 #include <istd/IPolymorphic.h>
6 
7 #include <iview/iview.h>
8 
9 
10 namespace iview
11 {
12 
13 
17 class ITouchable: virtual public istd::IPolymorphic
18 {
19 public:
20 
25  {
30 
35 
40 
45 
50 
55  };
56 
62  virtual TouchState IsTouched(istd::CIndex2d position) const = 0;
63 
67  virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const = 0;
68 };
69 
70 
71 } // namespace iview
72 
73 
74 #endif // !iview_ITouchable_included
75 
76 
Nothing is touched.
Definition: ITouchable.h:29
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
Last value in this enum.
Definition: ITouchable.h:54
virtual TouchState IsTouched(istd::CIndex2d position) const =0
Check, if any shape is touched.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const =0
Get description to shape at specified position.
Other element is touched.
Definition: ITouchable.h:49
TouchState
Enumeration for possible shape touch states.
Definition: ITouchable.h:24
This interface describes all untransparent GUI objects, which can be touched.
Definition: ITouchable.h:17
Inactive element is touched.
Definition: ITouchable.h:34
Ticker is touched.
Definition: ITouchable.h:39
Draggable element is touched.
Definition: ITouchable.h:44

© 2007-2017 Witold Gantzke and Kirill Lepskiy