window_func.h

Go to the documentation of this file.
00001 /* $Id: window_func.h 21244 2010-11-18 19:24:40Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef WINDOW_FUNC_H
00013 #define WINDOW_FUNC_H
00014 
00015 #include "window_type.h"
00016 #include "company_type.h"
00017 
00018 Window *FindWindowById(WindowClass cls, WindowNumber number);
00019 Window *FindWindowByClass(WindowClass cls);
00020 void ChangeWindowOwner(Owner old_owner, Owner new_owner);
00021 
00022 void ResizeWindow(Window *w, int x, int y);
00023 int PositionMainToolbar(Window *w);
00024 int PositionStatusbar(Window *w);
00025 int PositionNewsMessage(Window *w);
00026 
00027 int GetMainViewTop();
00028 int GetMainViewBottom();
00029 
00030 void InitWindowSystem();
00031 void UnInitWindowSystem();
00032 void ResetWindowSystem();
00033 void SetupColoursAndInitialWindow();
00034 void InputLoop();
00035 
00036 void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0);
00037 void InvalidateWindowClassesData(WindowClass cls, int data = 0);
00038 
00039 void DeleteNonVitalWindows();
00040 void DeleteAllNonVitalWindows();
00041 void DeleteConstructionWindows();
00042 void HideVitalWindows();
00043 void ShowVitalWindows();
00044 
00045 void ReInitAllWindows();
00046 
00047 void SetWindowWidgetDirty(WindowClass cls, WindowNumber number, byte widget_index);
00048 void SetWindowDirty(WindowClass cls, WindowNumber number);
00049 void SetWindowClassesDirty(WindowClass cls);
00050 
00051 void DeleteWindowById(WindowClass cls, WindowNumber number, bool force = true);
00052 void DeleteWindowByClass(WindowClass cls);
00053 
00054 #endif /* WINDOW_FUNC_H */

Generated on Fri Feb 4 20:53:51 2011 for OpenTTD by  doxygen 1.6.1