summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 3cb1fa9f6..f44efbcc2 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -534,6 +534,14 @@ public:
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize) {}
/**
+ * Initialize string parameters for a widget.
+ * Calls to this function are made during initialization to measure the size (that is as part of #InitNested()), during drawing,
+ * and while re-initializing the window. Only for widgets that render text initializing is requested.
+ * @param widget Widget number.
+ */
+ virtual void SetStringParameters(int widget) const {}
+
+ /**
* Called when window gains focus
*/
virtual void OnFocus() {}