ACF $AcfVersion:0$
ITouchable.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 <istd/IPolymorphic.h>
6
7#include <iview/iview.h>
8
9
10namespace iview
11{
12
13
17class ITouchable: virtual public istd::IPolymorphic
18{
19public:
20
61
67 virtual TouchState IsTouched(istd::CIndex2d position) const = 0;
68
72 virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const = 0;
73
77 virtual QString GetToolTipAt(istd::CIndex2d position) const = 0;
78};
79
80
81} // namespace iview
82
83
84
85
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
Base interface for all used interfaces and implementations.
This interface describes all untransparent GUI objects, which can be touched.
Definition ITouchable.h:18
virtual QString GetToolTipAt(istd::CIndex2d position) const =0
Get tooltip at specified position.
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:25
@ TS_AREA
Area is touched.
Definition ITouchable.h:49
@ TS_DRAGGABLE
Draggable element is touched.
Definition ITouchable.h:44
@ TS_OTHER
Other element is touched.
Definition ITouchable.h:54
@ TS_NONE
Nothing is touched.
Definition ITouchable.h:29
@ TS_INACTIVE
Inactive element is touched.
Definition ITouchable.h:34
@ TS_LAST
Last value in this enum.
Definition ITouchable.h:59
@ TS_TICKER
Ticker is touched.
Definition ITouchable.h:39
In this library is defined 2D view concept and standard visualisation objects.