|
Scroom 0.14-49-gb7ae7a6d
|
#include <viewinterface.hh>


Public Types | |
| using | Ptr = std::shared_ptr< SelectionListener > |
Public Member Functions | |
| virtual std::string | getSelectionType () |
| virtual void | onSelectionStart (Selection selection, std::shared_ptr< ViewInterface > view)=0 |
| virtual void | onSelectionUpdate (Selection selection, std::shared_ptr< ViewInterface > view)=0 |
| virtual void | onSelectionEnd (Selection selection, std::shared_ptr< ViewInterface > view)=0 |
Additional Inherited Members | |
Private Member Functions inherited from Interface | |
| Interface ()=default | |
| Interface (const Interface &)=delete | |
| Interface & | operator= (const Interface &)=delete |
| Interface (Interface &&)=delete | |
| Interface & | operator= (Interface &&)=delete |
| virtual | ~Interface ()=default |
Interface provided to something that wants to be notified of selection updates.
Whenever the user selection changes, the appropriate functions are called with either the starting point or the full selection as argument.
| using SelectionListener::Ptr = std::shared_ptr<SelectionListener> |
|
inlinevirtual |
Reimplemented in PipetteHandler.

|
pure virtual |
This function is called whenever the selection ends. That is, whenever the user releases the mouse button that was pressed.
The final selection is passed as an argument.
Implemented in MeasureHandler, and PipetteHandler.
|
pure virtual |
This function is called whenever the user clicks a view. The point that is clicked is passed as an argument.
The passed point is a point in the presentation coordinate space.
Implemented in MeasureHandler, and PipetteHandler.
|
pure virtual |
This function is called whenever the selection updates. That is, whenever the user moves the mouse while keeping the mouse button pressed.
The updated selection is passed as an argument.
Implemented in MeasureHandler, and PipetteHandler.