diff options
author | alberth <alberth@openttd.org> | 2009-07-12 12:19:41 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-12 12:19:41 +0000 |
commit | 9efd32d13ce11aedf020cd2ce9eddc2ccaa72d32 (patch) | |
tree | 92eabbfe0803a88ac29ae6d9dfcd51c000ffb2ca /src/widget_type.h | |
parent | c94c18fc0ad33c89583cd5fa4158a4abd89fd07e (diff) | |
download | openttd-9efd32d13ce11aedf020cd2ce9eddc2ccaa72d32.tar.xz |
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |