Mercurial > hg > openttd
view src/window_func.h @ 10528:faf41b99dbc3 draft
(svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 02 Jan 2009 20:59:04 +0000 |
parents | 39cf8eebfda5 |
children | a1d256bf72e0 |
line wrap: on
line source
/* $Id$ */ /** @file window_func.h Window functions not directly related to making/drawing windows. */ #ifndef WINDOW_FUNC_H #define WINDOW_FUNC_H #include "window_type.h" #include "company_type.h" void SetWindowDirty(const Window *w); Window *FindWindowById(WindowClass cls, WindowNumber number); void ChangeWindowOwner(Owner old_owner, Owner new_owner); void ResizeWindow(Window *w, int x, int y); int PositionMainToolbar(Window *w); void InitWindowSystem(); void UnInitWindowSystem(); void ResetWindowSystem(); void SetupColorsAndInitialWindow(); void InputLoop(); void InvalidateThisWindowData(Window *w, int data = 0); void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0); void InvalidateWindowClassesData(WindowClass cls, int data = 0); void DeleteNonVitalWindows(); void DeleteAllNonVitalWindows(); void HideVitalWindows(); void ShowVitalWindows(); void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); void InvalidateWindow(WindowClass cls, WindowNumber number); void InvalidateWindowClasses(WindowClass cls); void DeleteWindowById(WindowClass cls, WindowNumber number, bool force = true); void DeleteWindowByClass(WindowClass cls); #endif /* WINDOW_FUNC_H */