Menus can be scrolled also using the mouse wheel

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27844 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2008-10-03 06:03:27 +00:00
parent bf732017df
commit 4e0c2a797d
3 changed files with 62 additions and 14 deletions
+5 -3
View File
@@ -34,8 +34,9 @@ class BMenuWindow : public BWindow {
void AttachScrollers();
void DetachScrollers();
bool CheckForScrolling(BPoint cursor);
bool CheckForScrolling(const BPoint &cursor);
bool TryScrollBy(const float &step);
private:
BMenu *fMenu;
BMenuFrame *fMenuFrame;
@@ -45,7 +46,8 @@ class BMenuWindow : public BWindow {
float fValue;
float fLimit;
bool _Scroll(BPoint cursor);
bool _Scroll(const BPoint &cursor);
void _ScrollBy(const float &step);
};
} // namespace BPrivate