blip  0.1
Event Class Referenceabstract

An abstract base class for all application events. More...

#include <Event.hpp>

Inheritance diagram for Event:

Public Types

enum  Type { Type_Key, Type_Motion, Type_Sensor, Type_Timer }
 Event types. More...
 

Public Member Functions

virtual ~Event ()
 Destructor. More...
 
Type getType () const
 Get the event type. More...
 
virtual time_ms_t getEventTime () const =0
 Get the time at which this event occurred. More...
 

Protected Member Functions

 Event (Type type)
 Constructor. More...
 

Detailed Description

An abstract base class for all application events.

Author
Mark Lindner

Member Enumeration Documentation

◆ Type

enum Type

Event types.

Enumerator
Type_Key 

Key input events.

Type_Motion 

Motion input events.

Type_Sensor 

Sensor events.

Type_Timer 

Timer events.

Constructor & Destructor Documentation

◆ ~Event()

~Event ( )
virtual

Destructor.

◆ Event()

Event ( Type  type)
protected

Constructor.

Member Function Documentation

◆ getEventTime()

virtual time_ms_t getEventTime ( ) const
pure virtual

Get the time at which this event occurred.

Implemented in MotionEvent, KeyEvent, InputEvent, SensorEvent, and TimerEvent.

◆ getType()

Type getType ( ) const
inline

Get the event type.


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