2007-12-19 19:44:29 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-01-18 03:48:29 +00:00
|
|
|
/** @file window_func.h Window functions not directly related to making/drawing windows. */
|
2007-12-19 19:44:29 +00:00
|
|
|
|
|
|
|
#ifndef WINDOW_FUNC_H
|
|
|
|
#define WINDOW_FUNC_H
|
|
|
|
|
|
|
|
#include "window_type.h"
|
2008-01-12 14:10:35 +00:00
|
|
|
#include "player_type.h"
|
2007-12-19 19:44:29 +00:00
|
|
|
|
|
|
|
void SetWindowDirty(const Window *w);
|
|
|
|
void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
|
|
|
|
void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
|
|
|
|
|
|
|
|
Window *FindWindowById(WindowClass cls, WindowNumber number);
|
|
|
|
void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
|
|
|
|
|
|
|
|
void ResizeWindow(Window *w, int x, int y);
|
2007-12-19 20:45:46 +00:00
|
|
|
int PositionMainToolbar(Window *w);
|
2007-12-19 19:44:29 +00:00
|
|
|
|
|
|
|
void InitWindowSystem();
|
|
|
|
void UnInitWindowSystem();
|
|
|
|
void ResetWindowSystem();
|
2007-12-19 20:45:46 +00:00
|
|
|
void SetupColorsAndInitialWindow();
|
2007-12-19 19:44:29 +00:00
|
|
|
void InputLoop();
|
|
|
|
void InvalidateThisWindowData(Window *w);
|
|
|
|
void InvalidateWindowData(WindowClass cls, WindowNumber number);
|
|
|
|
|
|
|
|
void DeleteNonVitalWindows();
|
|
|
|
void DeleteAllNonVitalWindows();
|
|
|
|
void HideVitalWindows();
|
|
|
|
void ShowVitalWindows();
|
|
|
|
|
2007-12-25 11:26:07 +00:00
|
|
|
void InvalidateWindow(WindowClass cls, WindowNumber number);
|
|
|
|
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index);
|
|
|
|
void InvalidateWindowClasses(WindowClass cls);
|
|
|
|
void InvalidateWindowClassesData(WindowClass cls);
|
|
|
|
void DeleteWindowById(WindowClass cls, WindowNumber number);
|
|
|
|
void DeleteWindowByClass(WindowClass cls);
|
|
|
|
|
2007-12-19 19:44:29 +00:00
|
|
|
#endif /* WINDOW_FUNC_H */
|