//--------------------------------------------------------------------//// BitmapMenuItem.h//// Written by: Owen Smith////--------------------------------------------------------------------/*Copyright 1999, Be Incorporated. All Rights Reserved.This file may be used under the terms of the Be Sample Code License.*/#ifndef _BitmapMenuItem_h#define _BitmapMenuItem_h#include <Bitmap.h>#include <MenuItem.h>//====================================================================// CLASS: BitmapMenuItemclass BitmapMenuItem : public BMenuItem{//----------------------------------------------------------------// Constructors, destructors, operatorspublic:BitmapMenuItem(const char* name, const BBitmap& bitmap,BMessage* message, char shortcut = 0,uint32 modifiers = 0);//----------------------------------------------------------------// Virtual member function overridesprotected:void Draw(void);void GetContentSize(float* width, float* height);//----------------------------------------------------------------// Accessorspublic:void GetBitmapSize(float* width, float* height);//----------------------------------------------------------------// Member variablesprivate:BBitmap m_bitmap;};#endif /* _BitmapMenuItem_h */