[HighGUI] Updated mouse wheel delta to reside within the 'flags' variable. Updated C++ API.

This commit is contained in:
Adi Shavit
2014-01-12 09:33:08 +02:00
parent fecd5c994b
commit e45cf2173f
4 changed files with 12 additions and 5 deletions

View File

@@ -76,7 +76,9 @@ enum { EVENT_MOUSEMOVE = 0,
EVENT_MBUTTONUP = 6,
EVENT_LBUTTONDBLCLK = 7,
EVENT_RBUTTONDBLCLK = 8,
EVENT_MBUTTONDBLCLK = 9
EVENT_MBUTTONDBLCLK =9,
EVENT_MOUSEWHEEL =10,
EVENT_MOUSEHWHEEL =11
};
enum { EVENT_FLAG_LBUTTON = 1,
@@ -137,6 +139,8 @@ CV_EXPORTS_W double getWindowProperty(const String& winname, int prop_id);
//! assigns callback for mouse events
CV_EXPORTS void setMouseCallback(const String& winname, MouseCallback onMouse, void* userdata = 0);
CV_EXPORTS int getMouseWheelDelta(int flags);
CV_EXPORTS int createTrackbar(const String& trackbarname, const String& winname,
int* value, int count,
TrackbarCallback onChange = 0,