diff options
author | alberth <alberth@openttd.org> | 2009-11-29 21:14:34 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-11-29 21:14:34 +0000 |
commit | 5187a5980bcda6b37e30b755efed8aa3bbe936f0 (patch) | |
tree | f1ebfb274cfdf4ccb59bb632b6ea4d0e75d21e94 /src/window_gui.h | |
parent | 8a8bf6c53dfd4dcf0515526c5f9f4d0b7dcfa839 (diff) | |
download | openttd-5187a5980bcda6b37e30b755efed8aa3bbe936f0.tar.xz |
(svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index c72b99569..4e327a3c4 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -535,6 +535,12 @@ public: /*** Event handling ***/ /** + * Notification that the nested widget tree gets initialized. The event can be used to perform general computations. + * @note #nested_root and/or #nested_array (normally accessed via #GetWidget()) may not exist during this call. + */ + virtual void OnInit() { } + + /** * Compute the initial position of the window. * @param *desc The pointer to the WindowDesc of the window to create. * @param sm_width Smallest width of the window. |