igor::iEventMouseMove Class Reference

#include <iEventMouse.h>

Inherits igor::iEvent.

Public Member Functions

 iEventMouseMove (iWindowPtr window, const iaVector2f &from, const iaVector2f &to)
 
iEventKindMask getEventKindMask () const override
 
virtual const iaString getInfo () const override
 
const iaVector2fgetPosition () const
 
const iaVector2fgetLastPosition () const
 
- Public Member Functions inherited from igor::iEvent
 iEvent (iWindowPtr window=nullptr)
 
virtual ~iEvent ()=default
 
bool isOfKind (const iEventKind kind)
 
virtual iEventType getEventType () const =0
 
virtual iEventKindMask getEventKindMask () const =0
 
virtual const iaString getName () const =0
 
virtual const iaString getInfo () const
 
iWindowPtr getWindow () const
 
bool isConsumed () const
 
void consume ()
 
template<typename T , typename F >
bool dispatch (const F &func)
 

Detailed Description

mouse move event

Constructor & Destructor Documentation

◆ iEventMouseMove()

igor::iEventMouseMove::iEventMouseMove ( iWindowPtr  window,
const iaVector2f from,
const iaVector2f to 
)

init members

Parameters
windowthe window this event came from
fromthe old mouse position
tothe new mouse position

Member Function Documentation

◆ getEventKindMask()

iEventKindMask igor::iEventMouseMove::getEventKindMask ( ) const
overridevirtual
Returns
event kind mask

Implements igor::iEvent.

◆ getInfo()

const iaString igor::iEventMouseMove::getInfo ( ) const
overridevirtual
Returns
information to event

Reimplemented from igor::iEvent.

◆ getLastPosition()

const iaVector2f & igor::iEventMouseMove::getLastPosition ( ) const
Returns
last mouse position

◆ getPosition()

const iaVector2f & igor::iEventMouseMove::getPosition ( ) const
Returns
mouse position

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