summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-10-11 08:07:47 +0000
committerpeter1138 <peter1138@openttd.org>2011-10-11 08:07:47 +0000
commit50d15412705fa8ffb37e53afd798595e74073f0d (patch)
treeadd2c1787d5cc71bb594b03912c5a1e078354b2b /src/widget_type.h
parent719f6618d773a5ad848920949b0470122080ac37 (diff)
downloadopenttd-50d15412705fa8ffb37e53afd798595e74073f0d.tar.xz
(svn r23017) -Codechange: Add support for resized scrollbars.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index 4533743ed..ebabb0e6c 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -717,6 +717,14 @@ public:
/* virtual */ void SetupSmallestSize(Window *w, bool init_array);
/* virtual */ void Draw(const Window *w);
+
+ static void InvalidateDimensionCache();
+ static Dimension GetVerticalDimension();
+ static Dimension GetHorizontalDimension();
+
+private:
+ static Dimension vertical_dimension; ///< Cached size of vertical scrollbar button.
+ static Dimension horizontal_dimension; ///< Cached size of horizontal scrollbar button.
};
/**