Rasterfarm-SDK
Loading...
Searching...
No Matches
EventHandler Class Referenceabstract

#include <eventhandler.h>

Inheritance diagram for EventHandler:
KeyboardEventHandler MouseEventHandler TouchEventHandler

Public Member Functions

 EventHandler (const HeapArray< TypeID > &filter={}, const HeapArray< TypeID > &subTypeFilter={})
 
virtual ~EventHandler ()
 
void send (const Event &event)
 
bool filterEvent (const Event &event)
 

Protected Member Functions

virtual void notify (const Event &event)=0
 

Protected Attributes

HeapArray< TypeID > filter
 
HeapArray< TypeID > subTypeFilter
 

Detailed Description

Base ADT-Class for handling events.

Constructor & Destructor Documentation

◆ EventHandler()

EventHandler::EventHandler ( const HeapArray< TypeID > & filter = {},
const HeapArray< TypeID > & subTypeFilter = {} )
Parameters
Arrayof class-types to filter. Default enables all types from event.h.

◆ ~EventHandler()

virtual EventHandler::~EventHandler ( )
virtual

Member Function Documentation

◆ filterEvent()

bool EventHandler::filterEvent ( const Event & event)
Parameters
Arrayof class-types to filter.

◆ notify()

virtual void EventHandler::notify ( const Event & event)
protectedpure virtual

A user event is targeted for this object.

Parameters
eventThe Event.
Returns
void

◆ send()

void EventHandler::send ( const Event & event)

Member Data Documentation

◆ filter

HeapArray< TypeID > EventHandler::filter
protected

◆ subTypeFilter

HeapArray< TypeID > EventHandler::subTypeFilter
protected

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