author | truebrain |
Fri, 18 Jul 2008 01:00:03 +0000 | |
branch | noai |
changeset 11166 | 17960948c3af |
parent 10513 | 33cb70ff2f5d |
permissions | -rw-r--r-- |
9723 | 1 |
/* $Id$ */ |
2 |
||
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
3 |
/** @file window_func.h Window functions not directly related to making/drawing windows. */ |
9723 | 4 |
|
5 |
#ifndef WINDOW_FUNC_H |
|
6 |
#define WINDOW_FUNC_H |
|
7 |
||
8 |
#include "window_type.h" |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
9 |
#include "player_type.h" |
9723 | 10 |
|
11 |
void SetWindowDirty(const Window *w); |
|
12 |
||
13 |
Window *FindWindowById(WindowClass cls, WindowNumber number); |
|
14 |
void ChangeWindowOwner(PlayerID old_player, PlayerID new_player); |
|
15 |
||
16 |
void ResizeWindow(Window *w, int x, int y); |
|
17 |
int PositionMainToolbar(Window *w); |
|
18 |
||
19 |
void InitWindowSystem(); |
|
20 |
void UnInitWindowSystem(); |
|
21 |
void ResetWindowSystem(); |
|
22 |
void SetupColorsAndInitialWindow(); |
|
23 |
void InputLoop(); |
|
10513
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
24 |
|
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
25 |
void InvalidateThisWindowData(Window *w, int data = 0); |
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
26 |
void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0); |
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
27 |
void InvalidateWindowClassesData(WindowClass cls, int data = 0); |
9723 | 28 |
|
29 |
void DeleteNonVitalWindows(); |
|
30 |
void DeleteAllNonVitalWindows(); |
|
31 |
void HideVitalWindows(); |
|
32 |
void ShowVitalWindows(); |
|
33 |
||
34 |
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); |
|
10513
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
35 |
void InvalidateWindow(WindowClass cls, WindowNumber number); |
9723 | 36 |
void InvalidateWindowClasses(WindowClass cls); |
10513
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
37 |
|
9723 | 38 |
void DeleteWindowById(WindowClass cls, WindowNumber number); |
39 |
void DeleteWindowByClass(WindowClass cls); |
|
40 |
||
41 |
#endif /* WINDOW_FUNC_H */ |