2 * Copyright 2001-2009, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Marc Flerackers (mflerackers@androme.be)
7 * Stefano Ceccherini (burton666@libero.it)
24 class BMenuWindow
: public BWindow
{
26 BMenuWindow(const char* name
);
27 virtual ~BMenuWindow();
29 virtual void DispatchMessage(BMessage
* message
,
32 void AttachMenu(BMenu
* menu
);
35 void AttachScrollers();
36 void DetachScrollers();
38 void SetSmallStep(float step
);
39 void GetSteps(float* _smallStep
, float* _largeStep
) const;
40 bool HasScrollers() const;
41 bool CheckForScrolling(const BPoint
& cursor
);
42 bool TryScrollBy(const float& step
);
43 bool TryScrollTo(const float& where
);
46 bool _Scroll(const BPoint
& cursor
);
47 void _ScrollBy(const float& step
);
50 BMenuFrame
* fMenuFrame
;
51 BMenuScroller
* fUpperScroller
;
52 BMenuScroller
* fLowerScroller
;
59 } // namespace BPrivate
61 #endif // MENU_WINDOW_H