aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIToolBar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CGUIToolBar.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/CGUIToolBar.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIToolBar.h b/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIToolBar.h
new file mode 100644
index 0000000..3f419e7
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIToolBar.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_TOOL_BAR_H_INCLUDED__
6#define __C_GUI_TOOL_BAR_H_INCLUDED__
7
8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_
10
11#include "IGUIToolbar.h"
12
13namespace irr
14{
15namespace gui
16{
17
18 //! Stays at the top of its parent like the menu bar and contains tool buttons
19 class CGUIToolBar : public IGUIToolBar
20 {
21 public:
22
23 //! constructor
24 CGUIToolBar(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
25
26 //! called if an event happened.
27 virtual bool OnEvent(const SEvent& event);
28
29 //! draws the element and its children
30 virtual void draw();
31
32 //! Updates the absolute position.
33 virtual void updateAbsolutePosition();
34
35 //! Adds a button to the tool bar
36 virtual IGUIButton* addButton(s32 id=-1, const wchar_t* text=0,const wchar_t* tooltiptext=0,
37 video::ITexture* img=0, video::ITexture* pressed=0,
38 bool isPushButton=false, bool useAlphaChannel=false);
39
40 private:
41
42 s32 ButtonX;
43 };
44
45
46} // end namespace gui
47} // end namespace irr
48
49#endif // _IRR_COMPILE_WITH_GUI_
50
51#endif
52