From e3033ee895d8d621ffe2bb115b2293206db0e52f Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 25 Jul 2009 11:54:53 +0000 Subject: (svn r16953) -Codechange: Use SetStringParameters() for simple parameterized strings. --- src/window_gui.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/window_gui.h') 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 @@ -533,6 +533,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 */ -- cgit v1.2.3-54-g00ecf