From 9856cc9d0a339bace9c50a722e6a2bfc37cbdd88 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 26 Jul 2009 17:29:01 +0000 Subject: (svn r16963) -Codechange: Added NWidgetViewport widget. --- src/window_gui.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index ff806d1f1..3ea0f7c2e 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -193,7 +193,7 @@ enum SortButtonState { * A viewport is either following a vehicle (its id in then in #follow_vehicle), or it aims to display a specific * location #dest_scrollpos_x, #dest_scrollpos_y (#follow_vehicle is then #INVALID_VEHICLE). * The actual location being shown is #scrollpos_x, #scrollpos_y. - * @see InitializeViewport(), UpdateViewportPosition(). + * @see InitializeViewport(), UpdateViewportPosition(), UpdateViewportCoordinates(). */ struct ViewportData : ViewPort { VehicleID follow_vehicle; ///< VehicleID to follow if following a vehicle, #INVALID_VEHICLE otherwise. @@ -644,6 +644,7 @@ public: /** * Called after the window got resized. + * For nested windows with a viewport, call NWidgetViewport::UpdateViewportCoordinates. * @param delta The amount of which the window size changed. */ virtual void OnResize(Point delta) {} -- cgit v1.2.3-54-g00ecf