TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
tb_application_handler_interface.h
1 
9 #ifndef _TurtleBrains_ApplicationHandlerInterface_h_
10 #define _TurtleBrains_ApplicationHandlerInterface_h_
11 
12 #include "tb_application_menu.h"
13 #include "tb_application_dialog.h"
14 #include "tb_application_window.h"
15 
16 namespace TurtleBrains
17 {
18  namespace Application
19  {
20 
32  {
33  public:
38  virtual ~ApplicationHandlerInterface(void) = 0;
39 
44  virtual void OnWindowOpen(void);
45 
50  virtual void OnWindowClose(void);
51 
55  virtual void OnBecomeActive(void);
56 
60  virtual void OnBecomeInactive(void);
61 
66  virtual void OnRealtimeUpdate(void);
67 
75  virtual void OnMenuAction(const MenuIdentifier& menu, const MenuItemIdentifier& menuItem);
76 
91  virtual void OnDialogAction(const DialogIdentifier& dialog, const DialogControlIdentifier& dialogControl);
92 
100  virtual void CollectWindowProperties(WindowProperties& windowProperties);
101  private:
102  };
103 
104  }; /* namespace Application */
105 }; /* namespace TurtleBrains */
106 
108 
109 #endif /* _TurtleBrains_ApplicationHandlerInterface_h_ */
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
Contains classes, functions and constants to create Applications, Menus, Dialogs with native controls...
Definition: tb_application_dialog.h:23
virtual void OnDialogAction(const DialogIdentifier &dialog, const DialogControlIdentifier &dialogControl)
Definition: tb_application_window.h:22
Handle events from the application/window and actions from the user of your application by deriving a...
Definition: tb_application_handler_interface.h:31
virtual void CollectWindowProperties(WindowProperties &windowProperties)
unsigned short DialogControlIdentifier
Definition: tb_application_dialog.h:53
unsigned short DialogIdentifier
Definition: tb_application_dialog.h:44
virtual void OnMenuAction(const MenuIdentifier &menu, const MenuItemIdentifier &menuItem)
unsigned short MenuIdentifier
Definition: tb_application_menu.h:22
unsigned short MenuItemIdentifier
Definition: tb_application_menu.h:43