igor::iEventKeyDown Class Reference

#include <iEventKeyboard.h>

Inherits igor::iEvent.

Public Member Functions

 iEventKeyDown (iWindowPtr window, const iKeyCode key)
 
iEventKindMask getEventKindMask () const override
 
virtual const iaString getInfo () const override
 
iKeyCode getKey () 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

key down event

Constructor & Destructor Documentation

◆ iEventKeyDown()

igor::iEventKeyDown::iEventKeyDown ( iWindowPtr  window,
const iKeyCode  key 
)

init members

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

Member Function Documentation

◆ getEventKindMask()

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

Implements igor::iEvent.

◆ getInfo()

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

Reimplemented from igor::iEvent.

◆ getKey()

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

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