|
1 /* $Id$ */ |
|
2 |
|
3 /** @file window.h Window functions not directly related to making/drawing windows. */ |
|
4 |
|
5 #ifndef WINDOW_FUNC_H |
|
6 #define WINDOW_FUNC_H |
|
7 |
|
8 #include "window_type.h" |
|
9 |
|
10 /** |
|
11 * Marks the window as dirty for repaint. |
|
12 * |
|
13 * @ingroup dirty |
|
14 */ |
|
15 void SetWindowDirty(const Window *w); |
|
16 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam); |
|
17 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam); |
|
18 |
|
19 Window *FindWindowById(WindowClass cls, WindowNumber number); |
|
20 void DeleteWindow(Window *w); |
|
21 void DeletePlayerWindows(PlayerID pi); |
|
22 void ChangeWindowOwner(PlayerID old_player, PlayerID new_player); |
|
23 |
|
24 void ResizeWindow(Window *w, int x, int y); |
|
25 |
|
26 void InitWindowSystem(); |
|
27 void UnInitWindowSystem(); |
|
28 void ResetWindowSystem(); |
|
29 void InputLoop(); |
|
30 void InvalidateThisWindowData(Window *w); |
|
31 void InvalidateWindowData(WindowClass cls, WindowNumber number); |
|
32 void RelocateAllWindows(int neww, int newh); |
|
33 |
|
34 void DeleteNonVitalWindows(); |
|
35 void DeleteAllNonVitalWindows(); |
|
36 void HideVitalWindows(); |
|
37 void ShowVitalWindows(); |
|
38 Window **FindWindowZPosition(const Window *w); |
|
39 |
|
40 #endif /* WINDOW_FUNC_H */ |