summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
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.
};
/**