diff options
author | rubidium <rubidium@openttd.org> | 2009-03-18 01:06:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-18 01:06:48 +0000 |
commit | 35e4dc0f4bab5b7aca2ad6b1ec9914d88a576c06 (patch) | |
tree | e401e9db6202abee756661f34326d20ac3df4ca8 /src/window_gui.h | |
parent | c0a44985180acc6c85c4e1f53a80d1f011bb4f7a (diff) | |
download | openttd-35e4dc0f4bab5b7aca2ad6b1ec9914d88a576c06.tar.xz |
(svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth)
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index bfcb33cba..f873eb94a 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -587,15 +587,17 @@ enum WindowFlags { WF_SCROLL_UP = 1 << 4, ///< Upper scroll button has been pressed, @see ScrollbarClickHandler() WF_SCROLL_DOWN = 1 << 5, ///< Lower scroll button has been pressed, @see ScrollbarClickHandler() WF_SCROLL_MIDDLE = 1 << 6, ///< Scrollbar scrolling, @see ScrollbarClickHandler() - WF_HSCROLL = 1 << 7, - WF_SIZING = 1 << 8, ///< Window is being resized. - WF_STICKY = 1 << 9, ///< Window is made sticky by user + WF_SCROLL2 = 1 << 7, + WF_HSCROLL = 1 << 8, + WF_SIZING_RIGHT = 1 << 9, ///< Window is being resized towards the right. + WF_SIZING_LEFT = 1 << 10, ///< Window is being resized towards the left. + WF_SIZING = WF_SIZING_RIGHT | WF_SIZING_LEFT, ///< Window is being resized. + WF_STICKY = 1 << 11, ///< Window is made sticky by user - WF_DISABLE_VP_SCROLL = 1 << 10, ///< Window does not do autoscroll, @see HandleAutoscroll() + WF_DISABLE_VP_SCROLL = 1 << 12, ///< Window does not do autoscroll, @see HandleAutoscroll() - WF_WHITE_BORDER_ONE = 1 << 11, - WF_WHITE_BORDER_MASK = 1 << 12 | WF_WHITE_BORDER_ONE, - WF_SCROLL2 = 1 << 13, + WF_WHITE_BORDER_ONE = 1 << 13, + WF_WHITE_BORDER_MASK = 1 << 14 | WF_WHITE_BORDER_ONE, }; Window *BringWindowToFrontById(WindowClass cls, WindowNumber number); |