2007-12-19 20:44:29 +01:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-01-18 04:48:29 +01:00
|
|
|
/** @file window_func.h Window functions not directly related to making/drawing windows. */
|
2007-12-19 20:44:29 +01:00
|
|
|
|
|
|
|
#ifndef WINDOW_FUNC_H
|
|
|
|
#define WINDOW_FUNC_H
|
|
|
|
|
|
|
|
#include "window_type.h"
|
2008-09-30 22:51:04 +02:00
|
|
|
#include "company_type.h"
|
2007-12-19 20:44:29 +01:00
|
|
|
|
|
|
|
void SetWindowDirty(const Window *w);
|
|
|
|
|
|
|
|
Window *FindWindowById(WindowClass cls, WindowNumber number);
|
2008-09-30 22:39:50 +02:00
|
|
|
void ChangeWindowOwner(Owner old_owner, Owner new_owner);
|
2007-12-19 20:44:29 +01:00
|
|
|
|
|
|
|
void ResizeWindow(Window *w, int x, int y);
|
2007-12-19 21:45:46 +01:00
|
|
|
int PositionMainToolbar(Window *w);
|
2007-12-19 20:44:29 +01:00
|
|
|
|
|
|
|
void InitWindowSystem();
|
|
|
|
void UnInitWindowSystem();
|
|
|
|
void ResetWindowSystem();
|
2007-12-19 21:45:46 +01:00
|
|
|
void SetupColorsAndInitialWindow();
|
2007-12-19 20:44:29 +01:00
|
|
|
void InputLoop();
|
2008-05-10 14:30:27 +02:00
|
|
|
|
|
|
|
void InvalidateThisWindowData(Window *w, int data = 0);
|
|
|
|
void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0);
|
|
|
|
void InvalidateWindowClassesData(WindowClass cls, int data = 0);
|
2007-12-19 20:44:29 +01:00
|
|
|
|
|
|
|
void DeleteNonVitalWindows();
|
|
|
|
void DeleteAllNonVitalWindows();
|
|
|
|
void HideVitalWindows();
|
|
|
|
void ShowVitalWindows();
|
|
|
|
|
2007-12-25 12:26:07 +01:00
|
|
|
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index);
|
2008-05-10 14:30:27 +02:00
|
|
|
void InvalidateWindow(WindowClass cls, WindowNumber number);
|
2007-12-25 12:26:07 +01:00
|
|
|
void InvalidateWindowClasses(WindowClass cls);
|
2008-05-10 14:30:27 +02:00
|
|
|
|
2009-01-02 21:59:04 +01:00
|
|
|
void DeleteWindowById(WindowClass cls, WindowNumber number, bool force = true);
|
2007-12-25 12:26:07 +01:00
|
|
|
void DeleteWindowByClass(WindowClass cls);
|
|
|
|
|
2007-12-19 20:44:29 +01:00
|
|
|
#endif /* WINDOW_FUNC_H */
|