IDraggable.h
Go to the documentation of this file.
1 #ifndef iview_IMoveable_included
2 #define iview_IMoveable_included
3 
4 
5 #include <istd/IPolymorphic.h>
6 
7 #include <i2d/CVector2d.h>
8 
9 
10 namespace iview
11 {
12 
13 
17 class IDraggable: virtual public istd::IPolymorphic
18 {
19 public:
24  virtual void BeginDrag(const istd::CIndex2d& reference) = 0;
25 
30  virtual void SetDragPosition(const istd::CIndex2d& position) = 0;
31 
35  virtual void EndDrag() = 0;
36 
40  virtual bool IsDraggable() const = 0;
41 };
42 
43 
44 } // namespace iview
45 
46 
47 #endif // !iview_IMoveable_included
48 
49 
virtual void EndDrag()=0
Called after dragging.
virtual bool IsDraggable() const =0
Check if drag is enabled.
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Common interface for all, you can drag.
Definition: IDraggable.h:17
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.

© 2007-2017 Witold Gantzke and Kirill Lepskiy