#ifndef METHOD_MENUITEM_H_
#define METHOD_MENUITEM_H_
#include <Bitmap.h>
#include <MenuItem.h>
#define MENUITEM_ICON_SIZE 16
class MethodMenuItem : public BMenuItem {
public:
MethodMenuItem(int32 cookie, const char *label, const uchar *icon, BMenu *subMenu, BMessenger &messenger);
MethodMenuItem(int32 cookie, const char *label, const uchar *icon);
virtual ~MethodMenuItem();
virtual void DrawContent();
virtual void GetContentSize(float *width, float *height);
void SetName(const char *name);
const char *Name() { return Label(); };
void SetIcon(const uchar *icon);
const uchar *Icon() { return(uchar *)fIcon.Bits(); };
int32 Cookie() { return fCookie; };
private:
BBitmap fIcon;
int32 fCookie;
BMessenger fMessenger;
};
#endif