1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 #ifndef __C_GUI_MENU_H_INCLUDED__
\r
6 #define __C_GUI_MENU_H_INCLUDED__
\r
8 #include "IrrCompileConfig.h"
\r
9 #ifdef _IRR_COMPILE_WITH_GUI_
\r
11 #include "CGUIContextMenu.h"
\r
18 //! GUI menu interface.
\r
19 class CGUIMenu : public CGUIContextMenu
\r
24 CGUIMenu(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
\r
26 //! draws the element and its children
\r
27 virtual void draw() _IRR_OVERRIDE_;
\r
29 //! called if an event happened.
\r
30 virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;
\r
32 //! Updates the absolute position.
\r
33 virtual void updateAbsolutePosition() _IRR_OVERRIDE_;
\r
37 virtual void recalculateSize() _IRR_OVERRIDE_;
\r
39 //! returns the item highlight-area
\r
40 virtual core::rect<s32> getHRect(const SItem& i, const core::rect<s32>& absolute) const _IRR_OVERRIDE_;
\r
42 //! Gets drawing rect of Item
\r
43 virtual core::rect<s32> getRect(const SItem& i, const core::rect<s32>& absolute) const _IRR_OVERRIDE_;
\r
46 } // end namespace gui
\r
47 } // end namespace irr
\r
50 #endif // __C_GUI_MENU_H_INCLUDED__
\r
51 #endif // _IRR_COMPILE_WITH_GUI_
\r