From 9efd32d13ce11aedf020cd2ce9eddc2ccaa72d32 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 12 Jul 2009 12:19:41 +0000 Subject: (svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations. --- src/widget_type.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/widget_type.h') diff --git a/src/widget_type.h b/src/widget_type.h index 0e5fd42c4..3106dc8ae 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -477,6 +477,12 @@ public: /* virtual */ NWidgetCore *GetWidgetFromPos(int x, int y); /* virtual */ NWidgetBase *GetWidgetOfType(WidgetType tp); /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true); + + static void InvalidateDimensionCache(); +private: + static Dimension stickybox_dimension; ///< Cached size of a stickybox widget. + static Dimension resizebox_dimension; ///< Cached size of a resizebox widget. + static Dimension closebox_dimension; ///< Cached size of a closebox widget. }; Widget *InitializeNWidgets(NWidgetBase *nwid, bool rtl = false); -- cgit v1.2.3-54-g00ecf