#ifndef __C_GUI_MENU_H_INCLUDED__
#define __C_GUI_MENU_H_INCLUDED__
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "CGUIContextMenu.h"
namespace irr
{
namespace gui
{
class CGUIMenu : public CGUIContextMenu
{
public:
CGUIMenu(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
virtual void draw();
virtual bool OnEvent(const SEvent& event);
virtual void updateAbsolutePosition();
protected:
virtual void recalculateSize();
virtual core::rect<s32> getHRect(const SItem& i, const core::rect<s32>& absolute) const;
virtual core::rect<s32> getRect(const SItem& i, const core::rect<s32>& absolute) const;
};
}
}
#endif
#endif