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 | cab930041aeab52ba082ac32c248cee56ba4a1f3 (patch) | |
tree | 6e47823efb2a0ac2553e9bcd1acebfe6c7e7744f /window.h | |
parent | 73b8d800369dab31c890281d4c3756495f785943 (diff) | |
download | openttd-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.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 { |