Public Member Functions | List of all members
iview::IDraggable Class Referenceabstract

Common interface for all, you can drag. More...

#include <IDraggable.h>

Inheritance diagram for iview::IDraggable:
istd::IPolymorphic iview::CInteractiveShapeBase iview::CViewBase iview::ISelectableLayer iview::CAffineTransformation2dShape iview::CLineShape iview::CParallelogramShape iview::CPinShape iview::CRectangleShape iview::CRectControlledShapeBase iview::CCalibratedViewBase iview::CInteractiveViewLayer

Public Member Functions

virtual void BeginDrag (const istd::CIndex2d &reference)=0
 Called before dragging is begin. More...
 
virtual void SetDragPosition (const istd::CIndex2d &position)=0
 Set new drag position. More...
 
virtual void EndDrag ()=0
 Called after dragging. More...
 
virtual bool IsDraggable () const =0
 Check if drag is enabled. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Common interface for all, you can drag.

Definition at line 17 of file IDraggable.h.

Member Function Documentation

virtual void iview::IDraggable::BeginDrag ( const istd::CIndex2d reference)
pure virtual

Called before dragging is begin.

It set also reference value for dragging position.

Implemented in iview::CViewBase, iview::CInteractiveViewLayer, and iview::CInteractiveShapeBase.

virtual void iview::IDraggable::EndDrag ( )
pure virtual

Called after dragging.

Implemented in iview::CViewBase, iview::CInteractiveViewLayer, and iview::CInteractiveShapeBase.

virtual bool iview::IDraggable::IsDraggable ( ) const
pure virtual
virtual void iview::IDraggable::SetDragPosition ( const istd::CIndex2d position)
pure virtual

Set new drag position.

It must be enclosed using BeginDrag() and EndDrag() methods.

Implemented in iview::CViewBase, iview::CInteractiveViewLayer, and iview::CInteractiveShapeBase.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy