author | belugas |
Tue, 01 Jan 2008 14:20:48 +0000 | |
changeset 8667 | c916a5375166 |
parent 8627 | 448ebf3a8291 |
child 8750 | fdd6054e7bae |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
8602
9e75e594a068
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
rubidium
parents:
8598
diff
changeset
|
3 |
/** @file window.h Window functions not directly related to making/drawing windows. */ |
8531
e87a51f162e2
(svn r11595) -Codechange: add a new member to Window struct, based on its function counterpart HandleButtonClick.
belugas
parents:
8528
diff
changeset
|
4 |
|
8602
9e75e594a068
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
rubidium
parents:
8598
diff
changeset
|
5 |
#ifndef WINDOW_FUNC_H |
9e75e594a068
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
rubidium
parents:
8598
diff
changeset
|
6 |
#define WINDOW_FUNC_H |
0 | 7 |
|
8602
9e75e594a068
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
rubidium
parents:
8598
diff
changeset
|
8 |
#include "window_type.h" |
8041
63e760418a15
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
8026
diff
changeset
|
9 |
|
63e760418a15
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
8026
diff
changeset
|
10 |
/** |
63e760418a15
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
8026
diff
changeset
|
11 |
* Marks the window as dirty for repaint. |
63e760418a15
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
8026
diff
changeset
|
12 |
* |
63e760418a15
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
8026
diff
changeset
|
13 |
* @ingroup dirty |
63e760418a15
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
8026
diff
changeset
|
14 |
*/ |
4171 | 15 |
void SetWindowDirty(const Window *w); |
5838
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
16 |
void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam); |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
17 |
void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam); |
0 | 18 |
|
19 |
Window *FindWindowById(WindowClass cls, WindowNumber number); |
|
20 |
void DeleteWindow(Window *w); |
|
5077
587701a06b6a
(svn r7138) -Fix: [vehicle list windows] fixed a rare crash where having some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game
bjarni
parents:
5072
diff
changeset
|
21 |
void DeletePlayerWindows(PlayerID pi); |
587701a06b6a
(svn r7138) -Fix: [vehicle list windows] fixed a rare crash where having some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game
bjarni
parents:
5072
diff
changeset
|
22 |
void ChangeWindowOwner(PlayerID old_player, PlayerID new_player); |
0 | 23 |
|
5268
cbff87066429
(svn r7409) -Codechange: Make the ResizeWindow function also available outside of window.c. This makes
Darkvater
parents:
5236
diff
changeset
|
24 |
void ResizeWindow(Window *w, int x, int y); |
8603
88c5ce6a5215
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8602
diff
changeset
|
25 |
int PositionMainToolbar(Window *w); |
0 | 26 |
|
6573 | 27 |
void InitWindowSystem(); |
28 |
void UnInitWindowSystem(); |
|
29 |
void ResetWindowSystem(); |
|
8603
88c5ce6a5215
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8602
diff
changeset
|
30 |
void SetupColorsAndInitialWindow(); |
6573 | 31 |
void InputLoop(); |
4766
a23183d868d1
(svn r6680) -Codechange r6679: [train build window] only generate the list when the window data is invalidated or the window is generated, not on each redraw
bjarni
parents:
4765
diff
changeset
|
32 |
void InvalidateThisWindowData(Window *w); |
4739
bd535b408617
(svn r6651) -Coding feature: added the windowevent WE_INVALIDATE_DATA
bjarni
parents:
4730
diff
changeset
|
33 |
void InvalidateWindowData(WindowClass cls, WindowNumber number); |
0 | 34 |
void RelocateAllWindows(int neww, int newh); |
35 |
||
6573 | 36 |
void DeleteNonVitalWindows(); |
37 |
void DeleteAllNonVitalWindows(); |
|
38 |
void HideVitalWindows(); |
|
39 |
void ShowVitalWindows(); |
|
5124
d30772d0e9e1
(svn r7205) -Fix [FS#350, SF#1560913]: Window allocation and deletion messed with the actual window
Darkvater
parents:
5123
diff
changeset
|
40 |
Window **FindWindowZPosition(const Window *w); |
0 | 41 |
|
8627
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
42 |
void InvalidateWindow(WindowClass cls, WindowNumber number); |
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
43 |
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); |
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
44 |
void InvalidateWindowClasses(WindowClass cls); |
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
45 |
void InvalidateWindowClassesData(WindowClass cls); |
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
46 |
void DeleteWindowById(WindowClass cls, WindowNumber number); |
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
47 |
void DeleteWindowByClass(WindowClass cls); |
448ebf3a8291
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8603
diff
changeset
|
48 |
|
8602
9e75e594a068
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
rubidium
parents:
8598
diff
changeset
|
49 |
#endif /* WINDOW_FUNC_H */ |