(svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode.

pull/155/head
alberth 14 years ago
parent 9e2e90279f
commit 63c3220e1d

@ -59,7 +59,7 @@ byte _scroller_click_timeout;
bool _scrolling_scrollbar;
bool _scrolling_viewport;
byte _special_mouse_mode;
SpecialMouseMode _special_mouse_mode; ///< Mode of the mouse.
/** Window description constructor. */
WindowDesc::WindowDesc(WindowPosition def_pos, int16 def_width, int16 def_height,

@ -913,13 +913,14 @@ extern byte _scroller_click_timeout;
extern bool _scrolling_scrollbar;
extern bool _scrolling_viewport;
extern byte _special_mouse_mode;
/** Mouse modes. */
enum SpecialMouseMode {
WSM_NONE = 0,
WSM_DRAGDROP = 1,
WSM_SIZING = 2,
WSM_PRESIZE = 3,
WSM_NONE, ///< No special mouse mode.
WSM_DRAGDROP, ///< Dragging an object.
WSM_SIZING, ///< Sizing mode.
WSM_PRESIZE, ///< Presizing mode (docks, tunnels).
};
extern SpecialMouseMode _special_mouse_mode;
Window *GetCallbackWnd();

Loading…
Cancel
Save