# window_func.h

Go to the documentation of this file.

    00001 /* $Id: window_func.h 15428 2009-02-09 02:57:15Z rubidium $ */
    00002
    00005 #ifndef WINDOW_FUNC_H
    00006 #define WINDOW_FUNC_H
    00007
    00008 #include "window_type.h"
    00009 #include "company_type.h"
    00010
    00011 void SetWindowDirty(const Window *w);
    00012
    00013 Window *FindWindowById(WindowClass cls, WindowNumber number);
    00014 void ChangeWindowOwner(Owner old_owner, Owner new_owner);
    00015
    00016 void ResizeWindow(Window *w, int x, int y);
    00017 int PositionMainToolbar(Window *w);
    00018
    00019 void InitWindowSystem();
    00020 void UnInitWindowSystem();
    00021 void ResetWindowSystem();
    00022 void SetupColoursAndInitialWindow();
    00023 void InputLoop();
    00024
    00025 void InvalidateThisWindowData(Window *w, int data = 0);
    00026 void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0);
    00027 void InvalidateWindowClassesData(WindowClass cls, int data = 0);
    00028
    00029 void DeleteNonVitalWindows();
    00030 void DeleteAllNonVitalWindows();
    00031 void DeleteConstructionWindows();
    00032 void HideVitalWindows();
    00033 void ShowVitalWindows();
    00034
    00035 void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index);
    00036 void InvalidateWindow(WindowClass cls, WindowNumber number);
    00037 void InvalidateWindowClasses(WindowClass cls);
    00038
    00039 void DeleteWindowById(WindowClass cls, WindowNumber number, bool force = true);
    00040 void DeleteWindowByClass(WindowClass cls);
    00041
    00042 #endif /* WINDOW_FUNC_H */