summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 15:12:06 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 15:12:06 +0000
commitf9def73be628b8298eb9164ebdf5d0d77f30b106 (patch)
tree66a1daaed45d405317364932c5184ead15c023d4 /src/window_gui.h
parente9ae5ae307d3f4064a46175f4f66ca6a372f5578 (diff)
downloadopenttd-f9def73be628b8298eb9164ebdf5d0d77f30b106.tar.xz
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 897a2992e..bfcb33cba 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -38,7 +38,11 @@ extern Window *_focused_window;
/**
* High level window description
*/
-struct WindowDesc {
+struct WindowDesc : ZeroedMemoryAllocator {
+
+ WindowDesc(int16 left, int16 top, int16 min_width, int16 min_height, int16 def_width, int16 def_height,
+ WindowClass window_class, WindowClass parent_class, uint32 flags, const Widget *widgets);
+
int16 left; ///< Prefered x position of left edge of the window, @see WindowDefaultPosition()
int16 top; ///< Prefered y position of the top of the window, @see WindowDefaultPosition()
int16 minimum_width; ///< Minimal width of the window