diff options
author | alberth <alberth@openttd.org> | 2009-08-01 15:49:18 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-08-01 15:49:18 +0000 |
commit | 6a1af7f74fff2f0490f02f7e7727b9fde01a2e35 (patch) | |
tree | 69c11f6c3923bea83c8fbea60b2185038ad80cf3 /src/window_gui.h | |
parent | 47075fdbca9af3168fc53ef415748b54ee19764b (diff) | |
download | openttd-6a1af7f74fff2f0490f02f7e7727b9fde01a2e35.tar.xz |
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index f074093ef..d5ad1ca6d 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -220,7 +220,7 @@ struct Window : ZeroedMemoryAllocator { }; protected: - void InitializeData(WindowClass cls, const Widget *widget, NWidgetBase *nwid, int window_number, int biggest_index); + void InitializeData(WindowClass cls, const Widget *widget, int window_number); void InitializePositionSize(int x, int y, int min_width, int min_height); void FindWindowPlacementAndResize(int def_width, int def_height); void FindWindowPlacementAndResize(const WindowDesc *desc); @@ -268,6 +268,8 @@ public: Window *z_back; ///< The window behind us in z-order. void InitNested(const WindowDesc *desc, WindowNumber number = 0); + void CreateNestedTree(const WindowDesc *desc, bool fill_nested = true); + void FinishInitNested(const WindowDesc *desc, WindowNumber window_number); /** * Sets the enabled/disabled status of a widget. |