ICF 3.0.5.47
Technical documentation of ICF Libraries
iview::IMouseActionObserver Class Referenceabstract

Common interface for all shapes which are mouse events receiver. More...

#include <IMouseActionObserver.h>

Inheritance diagram for iview::IMouseActionObserver:
Collaboration diagram for iview::IMouseActionObserver:

Public Member Functions

virtual bool OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0
 It is called, when mouse button is pushed down or up on this object.
 
virtual bool OnMouseMove (istd::CIndex2d position)=0
 It is called, when mouse is moved.
 

Detailed Description

Common interface for all shapes which are mouse events receiver.

Definition at line 27 of file IMouseActionObserver.h.

Member Function Documentation

◆ OnMouseButton()

virtual bool iview::IMouseActionObserver::OnMouseButton ( istd::CIndex2d position,
Qt::MouseButton buttonType,
bool downFlag )
pure virtual

It is called, when mouse button is pushed down or up on this object.

Parameters
positionposition of mouse pointer on client area (picture coords).
buttonTypedetermine the mouse butten type.
downFlagtrue, if mouse button is pushed down, false if pushed up.
Returns
true if this shape should get focus to catch all mouse movements.

Implemented in iview::CAnnulusSegmentShape, iview::CAnnulusShape, iview::CArcShape, iview::CCenterPinShape, iview::CCircleShape, iview::CDistanceToolShape, iview::CInteractiveShapeBase, iview::CLabelShape, iview::CLineShape, iview::CParallelogramShape, iview::CPinShape, iview::CPolygonShape, iview::CPolylineShape, iview::CRectangleShape, iview::CRectControlledShapeBase, iview::CTubePolylineShape, and iview::CViewBase.

◆ OnMouseMove()

virtual bool iview::IMouseActionObserver::OnMouseMove ( istd::CIndex2d position)
pure virtual

It is called, when mouse is moved.

Only objects with focus receive this event.

Parameters
position- position of mouse pointer on client area (picture coords).
Returns
true if this shape should hold focus to catch longer all mouse movements.

Implemented in iview::CAnnulusSegmentShape, iview::CAnnulusShape, iview::CArcShape, iview::CCenterPinShape, iview::CCircleShape, iview::CDistanceToolShape, iview::CInteractiveShapeBase, iview::CLabelShape, iview::CLineShape, iview::CParallelogramShape, iview::CPinShape, iview::CPolygonShape, iview::CRectangleShape, iview::CTubePolylineShape, iview::CViewBase, and iview::CViewport.


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

© Witold Gantzke and Kirill Lepskiy