igor::iEventMouseKeyDown Class Reference

#include <iEventMouse.h>

Inherits igor::iEvent.

Public Member Functions

 iEventMouseKeyDown (iWindowPtr window, const iKeyCode key, const iaVector2i &pos)
 
iEventKindMask getEventKindMask () const override
 
virtual const iaString getInfo () const override
 
iKeyCode getKey () const
 
const iaVector2igetPosition () 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 key down event

Constructor & Destructor Documentation

◆ iEventMouseKeyDown()

igor::iEventMouseKeyDown::iEventMouseKeyDown ( iWindowPtr  window,
const iKeyCode  key,
const iaVector2i pos 
)

init members

Parameters
windowthe window this event came from
keythe key code used in this event

Member Function Documentation

◆ getEventKindMask()

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

Implements igor::iEvent.

◆ getInfo()

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

Reimplemented from igor::iEvent.

◆ getKey()

iKeyCode igor::iEventMouseKeyDown::getKey ( ) const
Returns
the key code

◆ getPosition()

const iaVector2i & igor::iEventMouseKeyDown::getPosition ( ) const
Returns
mouse pos when key was down

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