summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-05-30 12:06:18 +0000
committeralberth <alberth@openttd.org>2010-05-30 12:06:18 +0000
commit113f3ef0ebafcc637d061e955a162751cf011f8f (patch)
tree97b540ea5d7e931e802972ccbcee537744239343 /src/window_gui.h
parentfc82d9cd77224c458c05ce2fd749e58e9cee5299 (diff)
downloadopenttd-113f3ef0ebafcc637d061e955a162751cf011f8f.tar.xz
(svn r19904) -Codechange: Make EventState usable outside Window context.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 68fbfc90e..b1512abf9 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -19,6 +19,12 @@
#include "tile_type.h"
#include "widget_type.h"
+/** State of handling an event. */
+enum EventState {
+ ES_HANDLED, ///< The passed event is handled.
+ ES_NOT_HANDLED, ///< The passed event is not handled.
+};
+
/**
* Flags to describe the look of the frame
*/
@@ -334,12 +340,6 @@ struct ViewportData : ViewPort {
* Data structure for an opened window
*/
struct Window : ZeroedMemoryAllocator {
- /** State whether an event is handled or not */
- enum EventState {
- ES_HANDLED, ///< The passed event is handled
- ES_NOT_HANDLED, ///< The passed event is not handled
- };
-
protected:
void InitializeData(const WindowDesc *desc, WindowNumber window_number);
void InitializePositionSize(int x, int y, int min_width, int min_height);