diff options
author | frosch <frosch@openttd.org> | 2010-08-12 09:13:04 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-12 09:13:04 +0000 |
commit | 6e9c9c28d950a822beb0fb4e76d5ba40a247085c (patch) | |
tree | 62ebc1e27158efbab8eca1b6387ca5832ec43986 /src/widget_type.h | |
parent | 55bd5de43d31c71e81d7a6164830374485a75cb4 (diff) | |
download | openttd-6e9c9c28d950a822beb0fb4e76d5ba40a247085c.tar.xz |
(svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 7b5597ed7..961a6c4c9 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -632,15 +632,12 @@ public: * Also assign the scrollbar to other widgets using #SetScrollbar() to make the mousewheel work. * @ingroup NestedWidgets */ -class NWidgetScrollbar : public NWidgetCore { +class NWidgetScrollbar : public NWidgetCore, public Scrollbar { public: NWidgetScrollbar(WidgetType tp, Colours colour, int index); /* virtual */ void SetupSmallestSize(Window *w, bool init_array); /* virtual */ void Draw(const Window *w); - - const Scrollbar *GetScrollbar(const Window *w) const; - Scrollbar *GetScrollbar(Window *w) const; }; /** |