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.h6
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);