summaryrefslogtreecommitdiff
path: root/src/window_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-19 19:44:29 +0000
committerrubidium <rubidium@openttd.org>2007-12-19 19:44:29 +0000
commit8bfbfd0031bd155440432759cd6b2af0df1bccbd (patch)
tree1dade1883c85d5d6b12a252b91884e8e05409974 /src/window_func.h
parent41e8396f574f958d7ecc016f4c7cc8260e846fa4 (diff)
downloadopenttd-8bfbfd0031bd155440432759cd6b2af0df1bccbd.tar.xz
(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.
Diffstat (limited to 'src/window_func.h')
-rw-r--r--src/window_func.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/window_func.h b/src/window_func.h
new file mode 100644
index 000000000..8f3e5ff1d
--- /dev/null
+++ b/src/window_func.h
@@ -0,0 +1,40 @@
+/* $Id$ */
+
+/** @file window.h Window functions not directly related to making/drawing windows. */
+
+#ifndef WINDOW_FUNC_H
+#define WINDOW_FUNC_H
+
+#include "window_type.h"
+
+/**
+ * Marks the window as dirty for repaint.
+ *
+ * @ingroup dirty
+ */
+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 DeleteWindow(Window *w);
+void DeletePlayerWindows(PlayerID pi);
+void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
+
+void ResizeWindow(Window *w, int x, int y);
+
+void InitWindowSystem();
+void UnInitWindowSystem();
+void ResetWindowSystem();
+void InputLoop();
+void InvalidateThisWindowData(Window *w);
+void InvalidateWindowData(WindowClass cls, WindowNumber number);
+void RelocateAllWindows(int neww, int newh);
+
+void DeleteNonVitalWindows();
+void DeleteAllNonVitalWindows();
+void HideVitalWindows();
+void ShowVitalWindows();
+Window **FindWindowZPosition(const Window *w);
+
+#endif /* WINDOW_FUNC_H */