author | glx |
Tue, 16 Dec 2008 23:02:22 +0000 | |
changeset 10431 | 13946af4ff98 |
parent 10208 | 72c00af5c95d |
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" |
10208
72c00af5c95d
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
rubidium
parents:
10207
diff
changeset
|
9 |
#include "company_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); |
0 | 12 |
|
13 |
Window *FindWindowById(WindowClass cls, WindowNumber number); |
|
10207
c291a21b304e
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
rubidium
parents:
9165
diff
changeset
|
14 |
void ChangeWindowOwner(Owner old_owner, Owner new_owner); |
0 | 15 |
|
5268
e2625c661000
(svn r7409) -Codechange: Make the ResizeWindow function also available outside of window.c. This makes
Darkvater
parents:
5236
diff
changeset
|
16 |
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
|
17 |
int PositionMainToolbar(Window *w); |
0 | 18 |
|
6247 | 19 |
void InitWindowSystem(); |
20 |
void UnInitWindowSystem(); |
|
21 |
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
|
22 |
void SetupColorsAndInitialWindow(); |
6247 | 23 |
void InputLoop(); |
9165
6f26cc347e7a
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
rubidium
parents:
9117
diff
changeset
|
24 |
|
6f26cc347e7a
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
rubidium
parents:
9117
diff
changeset
|
25 |
void InvalidateThisWindowData(Window *w, int data = 0); |
6f26cc347e7a
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
rubidium
parents:
9117
diff
changeset
|
26 |
void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0); |
6f26cc347e7a
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
rubidium
parents:
9117
diff
changeset
|
27 |
void InvalidateWindowClassesData(WindowClass cls, int data = 0); |
0 | 28 |
|
6247 | 29 |
void DeleteNonVitalWindows(); |
30 |
void DeleteAllNonVitalWindows(); |
|
31 |
void HideVitalWindows(); |
|
32 |
void ShowVitalWindows(); |
|
0 | 33 |
|
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
|
34 |
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); |
9165
6f26cc347e7a
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
rubidium
parents:
9117
diff
changeset
|
35 |
void InvalidateWindow(WindowClass cls, WindowNumber number); |
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
|
36 |
void InvalidateWindowClasses(WindowClass cls); |
9165
6f26cc347e7a
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
rubidium
parents:
9117
diff
changeset
|
37 |
|
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
|
38 |
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
|
39 |
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
|
40 |
|
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
|
41 |
#endif /* WINDOW_FUNC_H */ |