ICF 3.1.1.10
Technical documentation of ICF Libraries
IDraggable.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_IMoveable_included
7#define iview_IMoveable_included
8
9
10#include <istd/IPolymorphic.h>
11
12#include <i2d/CVector2d.h>
13
14
15namespace iview
16{
17
18
22class IDraggable: virtual public istd::IPolymorphic
23{
24public:
29 virtual void BeginDrag(const istd::CIndex2d& reference) = 0;
30
35 virtual void SetDragPosition(const istd::CIndex2d& position) = 0;
36
40 virtual void EndDrag() = 0;
41
45 virtual bool IsDraggable() const = 0;
46};
47
48
49} // namespace iview
50
51
52#endif // !iview_IMoveable_included
53
54
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:25
Common interface for all, you can drag.
Definition IDraggable.h:23
virtual void SetDragPosition(const istd::CIndex2d &position)=0
Set new drag position.
virtual void BeginDrag(const istd::CIndex2d &reference)=0
Called before dragging is begin.
virtual void EndDrag()=0
Called after dragging.
virtual bool IsDraggable() const =0
Check if drag is enabled.
In this library is defined 2D view concept and standard visualisation objects.

© Witold Gantzke and Kirill Lepskiy