(svn r19904) -Codechange: Make EventState usable outside Window context.

This commit is contained in:
alberth
2010-05-30 12:06:18 +00:00
parent fc82d9cd77
commit 113f3ef0eb
4 changed files with 13 additions and 13 deletions

View File

@@ -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);