# window_func.h

Go to the documentation of this file.

    00001 /* $Id: window_func.h 11914 2008-01-18 03:48:29Z glx $ */
    00002
    00005 #ifndef WINDOW_FUNC_H
    00006 #define WINDOW_FUNC_H
    00007
    00008 #include "window_type.h"
    00009 #include "player_type.h"
    00010
    00016 void SetWindowDirty(const Window *w);
    00017 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
    00018 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
    00019
    00020 Window *FindWindowById(WindowClass cls, WindowNumber number);
    00021 void DeleteWindow(Window *w);
    00022 void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
    00023
    00024 void ResizeWindow(Window *w, int x, int y);
    00025 int PositionMainToolbar(Window *w);
    00026
    00027 void InitWindowSystem();
    00028 void UnInitWindowSystem();
    00029 void ResetWindowSystem();
    00030 void SetupColorsAndInitialWindow();
    00031 void InputLoop();
    00032 void InvalidateThisWindowData(Window *w);
    00033 void InvalidateWindowData(WindowClass cls, WindowNumber number);
    00034 void RelocateAllWindows(int neww, int newh);
    00035
    00036 void DeleteNonVitalWindows();
    00037 void DeleteAllNonVitalWindows();
    00038 void HideVitalWindows();
    00039 void ShowVitalWindows();
    00040 Window **FindWindowZPosition(const Window *w);
    00041
    00042 void InvalidateWindow(WindowClass cls, WindowNumber number);
    00043 void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index);
    00044 void InvalidateWindowClasses(WindowClass cls);
    00045 void InvalidateWindowClassesData(WindowClass cls);
    00046 void DeleteWindowById(WindowClass cls, WindowNumber number);
    00047 void DeleteWindowByClass(WindowClass cls);
    00048
    00049 #endif /* WINDOW_FUNC_H */