#include <appeventhandler.h>
Public Member Functions | |
AppEventHandler (BaseApp &app) | |
virtual | ~AppEventHandler ()=default |
AppEventHandler (AppEventHandler &)=delete | |
AppEventHandler & | operator= (const AppEventHandler &)=delete |
AppEventHandler (AppEventHandler &&)=delete | |
AppEventHandler & | operator= (AppEventHandler &&)=delete |
virtual void | start () |
virtual void | process () |
virtual void | shutdown () |
template<typename T > | |
T & | getApp () |
Protected Attributes | |
BaseApp & | mApp |
Helper object that allows for custom app processing behavior inside the AppRunner update loop. By default this object does nothing. Override the various methods to add process logic.
AppEventHandler | ( | BaseApp & | app | ) |
Constructor
app | the app this event handler works with when processing messages |
|
virtualdefault |
|
delete |
Copy is not allowed
|
delete |
Move is not allowed
T & getApp |
Returns the application as an object of type T
|
delete |
|
delete |
|
virtual |
This is called within the main loop of the app runner to specify specific event process behavior. For example, when working with a window you might want to check for window or input messages and forward those to the application This function is invoked at the beginning of the app loop
Reimplemented in GUIAppEventHandler, and SDLAppEventHandler.
|
virtual |
Called before shutting down all services and exiting the app
Reimplemented in GUIAppEventHandler, and SDLAppEventHandler.
|
virtual |
Called before running the app loop but after all services have been initialized Use this call to initialize functionality before starting the process loop
Reimplemented in GUIAppEventHandler, and SDLAppEventHandler.
|
protected |