diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-11 10:12:00 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-11 10:12:00 +0000 |
commit | 47e7ad7771fc361962fdc169caf7c1a3ed875a1d (patch) | |
tree | 6e47823efb2a0ac2553e9bcd1acebfe6c7e7744f /window.h | |
parent | 21db9ebb8e5692245e1e6d68a045649f6a37166a (diff) | |
download | openttd-47e7ad7771fc361962fdc169caf7c1a3ed875a1d.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.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 { |