diff options
author | alberth <alberth@openttd.org> | 2009-08-01 15:45:18 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-08-01 15:45:18 +0000 |
commit | 47075fdbca9af3168fc53ef415748b54ee19764b (patch) | |
tree | 4e79a4d2a86a4fed388092460e7247c2aa7e8aea /src/widget_type.h | |
parent | 9e682bb2f7d09e9b3c2380cd730322937e027e35 (diff) | |
download | openttd-47075fdbca9af3168fc53ef415748b54ee19764b.tar.xz |
(svn r17023) -Revert (r16839): FillNestedArray() was less obsolete than anticipated.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index ae30eac0b..6217cd85a 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -181,6 +181,7 @@ public: virtual void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool allow_resize_x, bool allow_resize_y, bool rtl) = 0; virtual void StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl) = 0; + virtual void FillNestedArray(NWidgetCore **array, uint length) = 0; virtual NWidgetCore *GetWidgetFromPos(int x, int y) = 0; virtual NWidgetBase *GetWidgetOfType(WidgetType tp); @@ -296,6 +297,7 @@ public: inline bool IsDisabled(); void StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl); + /* virtual */ void FillNestedArray(NWidgetCore **array, uint length); /* virtual */ NWidgetCore *GetWidgetFromPos(int x, int y); virtual Scrollbar *FindScrollbar(Window *w, bool allow_next = true) = 0; @@ -346,6 +348,7 @@ public: ~NWidgetContainer(); void Add(NWidgetBase *wid); + /* virtual */ void FillNestedArray(NWidgetCore **array, uint length); /** Return whether the container is empty. */ inline bool IsEmpty() { return head == NULL; }; @@ -442,6 +445,7 @@ public: void SetupSmallestSize(Window *w, bool init_array); void StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl); + /* virtual */ void FillNestedArray(NWidgetCore **array, uint length); /* virtual */ void Draw(const Window *w); /* virtual */ void Invalidate(const Window *w) const; @@ -462,6 +466,7 @@ public: void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool allow_resize_x, bool allow_resize_y, bool rtl); void StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl); + /* virtual */ void FillNestedArray(NWidgetCore **array, uint length); /* virtual */ void Draw(const Window *w); /* virtual */ NWidgetCore *GetWidgetFromPos(int x, int y); |