summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-11-11 10:12:00 +0000
committerDarkvater <Darkvater@openttd.org>2006-11-11 10:12:00 +0000
commitcab930041aeab52ba082ac32c248cee56ba4a1f3 (patch)
tree6e47823efb2a0ac2553e9bcd1acebfe6c7e7744f /window.h
parent73b8d800369dab31c890281d4c3756495f785943 (diff)
downloadopenttd-cab930041aeab52ba082ac32c248cee56ba4a1f3.tar.xz
(svn r7130) -Codechange: Handle the positioning of windows through the desc->left/top settings with
some special values (WDP_) instead of checking window-class. This also fixes FS#172 now that we can position windows arbitrarily and are not restricted to window-classes.
Diffstat (limited to 'window.h')
-rw-r--r--window.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/window.h b/window.h
index b87d81795..3252bcfaf 100644
--- a/window.h
+++ b/window.h
@@ -275,8 +275,10 @@ enum {
/* can be used as x or y coordinates to cause a specific placement */
enum {
- WDP_AUTO = -1,
- WDP_CENTER = -2,
+ WDP_AUTO = -1, ///< Find a place automatically
+ WDP_CENTER = -2, ///< Center the window (left/right or top/bottom)
+ WDP_ALIGN_TBR = -3, ///< Align the right side of the window with the right side of the main toolbar
+ WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar
};
typedef struct Textbuf {