From 113f3ef0ebafcc637d061e955a162751cf011f8f Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 30 May 2010 12:06:18 +0000 Subject: (svn r19904) -Codechange: Make EventState usable outside Window context. --- src/window_gui.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/window_gui.h') 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); -- cgit v1.2.3-54-g00ecf