summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-06-04 14:34:38 +0000
committeralberth <alberth@openttd.org>2009-06-04 14:34:38 +0000
commit19ccf6912c237c1bfb1c82197cdeadd9c7fdeef6 (patch)
tree2652930f24bfcd1e9ff8dd62fcf4c9b6bc165b6e /src/window_gui.h
parentb144a5451cb451d91bacafd80cab04640d1c1af1 (diff)
downloadopenttd-19ccf6912c237c1bfb1c82197cdeadd9c7fdeef6.tar.xz
(svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 62757f9c4..853615905 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -138,13 +138,14 @@ struct Window : ZeroedMemoryAllocator {
protected:
void Initialize(int x, int y, int min_width, int min_height,
- WindowClass cls, const Widget *widget, int window_number);
+ WindowClass cls, const Widget *widget, NWidgetBase *nwid, int window_number);
void FindWindowPlacementAndResize(int def_width, int def_height);
void FindWindowPlacementAndResize(const WindowDesc *desc);
public:
Window(int x, int y, int width, int height, WindowClass cls, const Widget *widget);
Window(const WindowDesc *desc, WindowNumber number = 0);
+ Window();
virtual ~Window();
/* Don't allow arrays; arrays of Windows are pointless as you need
@@ -183,6 +184,8 @@ public:
Window *z_front; ///< The window in front of us in z-order.
Window *z_back; ///< The window behind us in z-order.
+ void InitNested(const WindowDesc *desc, WindowNumber number = 0);
+
/**
* Sets the enabled/disabled status of a widget.
* By default, widgets are enabled.