aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-13 19:47:58 +1000
committerDavid Walter Seikel2014-01-13 19:47:58 +1000
commitf9158592e1478b2013afc7041d9ed041cf2d2f4a (patch)
treeb16e389d7988700e21b4c9741044cefa536dcbae /libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h
parentLibraries readme updated with change markers and more of the Irrlicht changes. (diff)
downloadSledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.zip
SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.gz
SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.bz2
SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.xz
Update Irrlicht to 1.8.1. Include actual change markers this time. lol
Diffstat (limited to 'libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h')
-rw-r--r--libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h b/libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h
new file mode 100644
index 0000000..d1e9526
--- /dev/null
+++ b/libraries/irrlicht-1.8.1/source/Irrlicht/CGUIMenu.h
@@ -0,0 +1,52 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __C_GUI_MENU_H_INCLUDED__
6#define __C_GUI_MENU_H_INCLUDED__
7
8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_
10
11#include "CGUIContextMenu.h"
12
13namespace irr
14{
15namespace gui
16{
17
18 //! GUI menu interface.
19 class CGUIMenu : public CGUIContextMenu
20 {
21 public:
22
23 //! constructor
24 CGUIMenu(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
25
26 //! draws the element and its children
27 virtual void draw();
28
29 //! called if an event happened.
30 virtual bool OnEvent(const SEvent& event);
31
32 //! Updates the absolute position.
33 virtual void updateAbsolutePosition();
34
35 protected:
36
37 virtual void recalculateSize();
38
39 //! returns the item highlight-area
40 virtual core::rect<s32> getHRect(const SItem& i, const core::rect<s32>& absolute) const;
41
42 //! Gets drawing rect of Item
43 virtual core::rect<s32> getRect(const SItem& i, const core::rect<s32>& absolute) const;
44 };
45
46} // end namespace gui
47} // end namespace irr
48
49
50#endif // __C_GUI_MENU_H_INCLUDED__
51#endif // _IRR_COMPILE_WITH_GUI_
52