diff options
author | alberth <alberth@openttd.org> | 2009-09-19 11:55:44 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-09-19 11:55:44 +0000 |
commit | ceab116065b3bde0c8932f1006374f9e37529436 (patch) | |
tree | 7b059fe2989966b1118df1ec33c5168fffd06ac6 /src/widget_type.h | |
parent | 116c77c342d0f628235a7f5dbacfbb5bc3fb0829 (diff) | |
download | openttd-ceab116065b3bde0c8932f1006374f9e37529436.tar.xz |
(svn r17573) -Codechange: NWID_SELECTION containers have a selected widget-plane, and optionally an index in the nested_array.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 22fd28538..8683f2003 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -377,12 +377,20 @@ class NWidgetStacked : public NWidgetContainer { public: NWidgetStacked(WidgetType tp); + void SetIndex(int index); + void SetupSmallestSize(Window *w, bool init_array); 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(NWidgetBase **array, uint length); /* virtual */ void Draw(const Window *w); /* virtual */ NWidgetCore *GetWidgetFromPos(int x, int y); + + void SetDisplayedPlane(int plane); + + int shown_plane; ///< Plane being displayed (for #NWID_SELECTION only). + int index; ///< If non-negative, index in the #Window::nested_array. }; /** Nested widget container flags, */ |