(svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead.

This commit is contained in:
frosch
2010-08-12 09:13:04 +00:00
parent 92c34da796
commit b98eba0fb2
4 changed files with 9 additions and 35 deletions

View File

@@ -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;
};
/**