summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-12 06:40:28 +0000
committerfrosch <frosch@openttd.org>2010-08-12 06:40:28 +0000
commit629b350a71c10b7675a70226d0ead657258f5cb6 (patch)
tree9224f20b204250bd4c2788e59fd096fc010839e1 /src/window_gui.h
parentcfde445ec95f14d4358eb3dc32972f971f851dda (diff)
downloadopenttd-629b350a71c10b7675a70226d0ead657258f5cb6.tar.xz
(svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 38a8759d7..13f61d628 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -407,6 +407,8 @@ public:
template <class NWID>
inline NWID *GetWidget(uint widnum);
+ const Scrollbar *GetScrollbar(uint widnum) const;
+ Scrollbar *GetScrollbar(uint widnum);
void InitNested(const WindowDesc *desc, WindowNumber number = 0);
void CreateNestedTree(const WindowDesc *desc, bool fill_nested = true);