diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
commit | e6c944a6c4507ec00948391d1b0bdf300bbd879e (patch) | |
tree | 248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/window_gui.h | |
parent | 46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff) | |
download | openttd-e6c944a6c4507ec00948391d1b0bdf300bbd879e.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index c0b6d6efa..ae6edabec 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -296,6 +296,7 @@ private: public: Window(WindowProc *proc) : wndproc(proc) {} + virtual ~Window(); uint16 flags4; ///< Window flags, @see WindowFlags WindowClass window_class; ///< Window class @@ -345,6 +346,8 @@ public: void CDECL SetWidgetsLoweredState(bool lowered_stat, int widgets, ...); void InvalidateWidget(byte widget_index) const; + void SetDirty() const; + virtual void HandleWindowEvent(WindowEvent *e); }; @@ -548,7 +551,6 @@ void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam); Window *FindWindowById(WindowClass cls, WindowNumber number); -void DeleteWindow(Window *w); void DeletePlayerWindows(PlayerID pi); void ChangeWindowOwner(PlayerID old_player, PlayerID new_player); Window *BringWindowToFrontById(WindowClass cls, WindowNumber number); |