Robot Devastation
WindowEvent.hpp
1 // Authors: see AUTHORS.md at project root.
2 // CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
3 // URL: https://github.com/asrob-uc3m/robotDevastation
4 
5 #ifndef __RD_WINDOW_EVENT__
6 #define __RD_WINDOW_EVENT__
7 
8 
9 namespace rd{
10 
20 {
21  public:
22  WindowEvent(int event_id);
23 
28  int getEvent() const;
29 
31  static const int WINDOW_UNKNOWN;
33  static const int WINDOW_CLOSE;
34 
35  private:
36  WindowEvent();
37 
39  int event_id;
40 };
41 
42 }
43 
44 #endif //-- __RD_WINDOW_EVENT__
rd::WindowEvent::event_id
int event_id
Stores an identifier for the window event.
Definition: WindowEvent.hpp:39
rd
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
rd::WindowEvent::WINDOW_CLOSE
static const int WINDOW_CLOSE
Constant representing a close window action.
Definition: WindowEvent.hpp:33
rd::WindowEvent::getEvent
int getEvent() const
Get the identifier for this window event.
Definition: WindowEvent.cpp:11
rd::WindowEvent
Class that represents a window event.
Definition: WindowEvent.hpp:19
rd::WindowEvent::WINDOW_UNKNOWN
static const int WINDOW_UNKNOWN
Constant representing an unimplemented or unrecognized window action.
Definition: WindowEvent.hpp:31