NAP
GUIAppEventHandler Class Reference

#include <guiappeventhandler.h>

Public Member Functions

 GUIAppEventHandler (App &app)
 
virtual void start () override
 
virtual void process () override
 
virtual void shutdown () override
 
- Public Member Functions inherited from AppEventHandler
 AppEventHandler (BaseApp &app)
 
virtual ~AppEventHandler ()=default
 
 AppEventHandler (AppEventHandler &)=delete
 
AppEventHandleroperator= (const AppEventHandler &)=delete
 
 AppEventHandler (AppEventHandler &&)=delete
 
AppEventHandleroperator= (AppEventHandler &&)=delete
 
template<typename T >
T & getApp ()
 

Additional Inherited Members

- Protected Attributes inherited from AppEventHandler
BaseAppmApp
 

Detailed Description

Application event handler that is designed to work with applications that host a graphical user interface. This class checks if the user is interacting with a GUI element, if so, no input events are forwarded to the application.

Inheritance diagram for GUIAppEventHandler:
[legend]
Collaboration diagram for GUIAppEventHandler:
[legend]

Constructor & Destructor Documentation

◆ GUIAppEventHandler()

GUIAppEventHandler ( App app)

Member Function Documentation

◆ process()

virtual void process ( )
overridevirtual

This call polls the various SDL messages and filters them based on GUI activity. If a GUI element is actively used the events are not forwarded to the running app.

Reimplemented from AppEventHandler.

◆ shutdown()

virtual void shutdown ( )
overridevirtual

This call deletes the input converter

Reimplemented from AppEventHandler.

◆ start()

virtual void start ( )
overridevirtual

This call creates the SDL Input Converter.

Reimplemented from AppEventHandler.