author | rubidium |
Tue, 06 May 2008 21:28:30 +0000 | |
changeset 9115 | 47ae980bace3 |
parent 8995 | f6b859375e10 |
child 9117 | 87f472043e9e |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
8348 | 3 |
/** @file window_func.h Window functions not directly related to making/drawing windows. */ |
8035
8c76ea0d84ab
(svn r11595) -Codechange: add a new member to Window struct, based on its function counterpart HandleButtonClick.
belugas
parents:
8032
diff
changeset
|
4 |
|
8106
e6790dd9e750
(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:
8102
diff
changeset
|
5 |
#ifndef WINDOW_FUNC_H |
e6790dd9e750
(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:
8102
diff
changeset
|
6 |
#define WINDOW_FUNC_H |
0 | 7 |
|
8106
e6790dd9e750
(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:
8102
diff
changeset
|
8 |
#include "window_type.h" |
8254
1496654ca5e7
(svn r11818) -Codechange: split player.h into smaller pieces.
rubidium
parents:
8131
diff
changeset
|
9 |
#include "player_type.h" |
7545
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7530
diff
changeset
|
10 |
|
4171 | 11 |
void SetWindowDirty(const Window *w); |
5587
167d9a91ef02
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5475
diff
changeset
|
12 |
void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam); |
167d9a91ef02
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5475
diff
changeset
|
13 |
void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam); |
0 | 14 |
|
15 |
Window *FindWindowById(WindowClass cls, WindowNumber number); |
|
5077
5a601eb01735
(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
|
16 |
void ChangeWindowOwner(PlayerID old_player, PlayerID new_player); |
0 | 17 |
|
5268
e2625c661000
(svn r7409) -Codechange: Make the ResizeWindow function also available outside of window.c. This makes
Darkvater
parents:
5236
diff
changeset
|
18 |
void ResizeWindow(Window *w, int x, int y); |
8107
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8106
diff
changeset
|
19 |
int PositionMainToolbar(Window *w); |
0 | 20 |
|
6247 | 21 |
void InitWindowSystem(); |
22 |
void UnInitWindowSystem(); |
|
23 |
void ResetWindowSystem(); |
|
8107
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8106
diff
changeset
|
24 |
void SetupColorsAndInitialWindow(); |
6247 | 25 |
void InputLoop(); |
4766
aa276d0ec2eb
(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
|
26 |
void InvalidateThisWindowData(Window *w); |
4739
e626ef1b522e
(svn r6651) -Coding feature: added the windowevent WE_INVALIDATE_DATA
bjarni
parents:
4730
diff
changeset
|
27 |
void InvalidateWindowData(WindowClass cls, WindowNumber number); |
0 | 28 |
void RelocateAllWindows(int neww, int newh); |
29 |
||
6247 | 30 |
void DeleteNonVitalWindows(); |
31 |
void DeleteAllNonVitalWindows(); |
|
32 |
void HideVitalWindows(); |
|
33 |
void ShowVitalWindows(); |
|
0 | 34 |
|
8131
160939e24ed3
(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:
8107
diff
changeset
|
35 |
void InvalidateWindow(WindowClass cls, WindowNumber number); |
160939e24ed3
(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:
8107
diff
changeset
|
36 |
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); |
160939e24ed3
(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:
8107
diff
changeset
|
37 |
void InvalidateWindowClasses(WindowClass cls); |
160939e24ed3
(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:
8107
diff
changeset
|
38 |
void InvalidateWindowClassesData(WindowClass cls); |
160939e24ed3
(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:
8107
diff
changeset
|
39 |
void DeleteWindowById(WindowClass cls, WindowNumber number); |
160939e24ed3
(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:
8107
diff
changeset
|
40 |
void DeleteWindowByClass(WindowClass cls); |
160939e24ed3
(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:
8107
diff
changeset
|
41 |
|
8106
e6790dd9e750
(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:
8102
diff
changeset
|
42 |
#endif /* WINDOW_FUNC_H */ |