Files
haiku-beta6/headers/private/interface/MenuWindow.h
T

52 lines
844 B
C++
Raw Normal View History

/*
* Copyright 2001-2006, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Marc Flerackers ([email protected])
* Stefano Ceccherini ([email protected])
*/
2004-12-27 09:05:16 +00:00
#ifndef __MENUWINDOW_H
#define __MENUWINDOW_H
2004-12-27 09:05:16 +00:00
#include <Window.h>
class BMenu;
namespace BPrivate {
class BMenuFrame;
class BMenuScroller;
2005-01-04 13:00:33 +00:00
2004-12-27 09:05:16 +00:00
class BMenuWindow : public BWindow {
public:
BMenuWindow(const char *name);
virtual ~BMenuWindow();
2005-01-04 13:00:33 +00:00
void AttachMenu(BMenu *menu);
void DetachMenu();
void AttachScrollers();
void DetachScrollers();
2004-12-27 09:05:16 +00:00
bool CheckForScrolling(BPoint cursor);
private:
BMenu *fMenu;
BMenuFrame *fMenuFrame;
BMenuScroller *fUpperScroller;
BMenuScroller *fLowerScroller;
float fValue;
float fLimit;
bool _Scroll(BPoint cursor);
2004-12-27 09:05:16 +00:00
};
} // namespace BPrivate
#endif // __MENUWINDOW_H