diff options
author | alberth <alberth@openttd.org> | 2009-06-03 20:00:33 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-06-03 20:00:33 +0000 |
commit | 1ba3755aa7383c34042f781c85a28f76417962cd (patch) | |
tree | fe4f24c20a367e5f0d53e64b5107ea6a8d6c8446 /src/window_gui.h | |
parent | caf98238e3cffedbc80fc9f7aa0f485500f6913a (diff) | |
download | openttd-1ba3755aa7383c34042f781c85a28f76417962cd.tar.xz |
(svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 6f819cf28..5ff7bbaa4 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -169,11 +169,14 @@ public: Owner owner; ///< The owner of the content shown in this window. Company colour is acquired from this variable. - ViewportData *viewport;///< Pointer to viewport data, if present - Widget *widget; ///< Widgets of the window - uint widget_count; ///< Number of widgets of the window - uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag - const Widget *focused_widget; ///< Currently focused widget or NULL, if no widget has focus + ViewportData *viewport; ///< Pointer to viewport data, if present. + Widget *widget; ///< Widgets of the window. + uint widget_count; ///< Number of widgets of the window. + uint32 desc_flags; ///< Window/widgets default flags setting. @see WindowDefaultFlag + const Widget *focused_widget; ///< Currently focused widget, or \c NULL if no widget has focus. + NWidgetBase *nested_root; ///< Root of the nested tree. + NWidgetCore **nested_array; ///< Array of pointers into the tree. + uint nested_array_size; ///< Size of the nested array. Window *parent; ///< Parent window Window *z_front; ///< The window in front of us in z-order |