aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h')
-rw-r--r--libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h106
1 files changed, 53 insertions, 53 deletions
diff --git a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h
index e6f8815..b697942 100644
--- a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h
+++ b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditFactory.h
@@ -1,53 +1,53 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt 1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine". 2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h 3// For conditions of distribution and use, see copyright notice in irrlicht.h
4 4
5#ifndef __C_GUIEDIT_FACTORY_H_INCLUDED__ 5#ifndef __C_GUIEDIT_FACTORY_H_INCLUDED__
6#define __C_GUIEDIT_FACTORY_H_INCLUDED__ 6#define __C_GUIEDIT_FACTORY_H_INCLUDED__
7 7
8#include "IGUIElementFactory.h" 8#include "IGUIElementFactory.h"
9 9
10namespace irr 10namespace irr
11{ 11{
12namespace gui 12namespace gui
13{ 13{
14 class IGUIElement; 14 class IGUIElement;
15 class IGUIEnvironment; 15 class IGUIEnvironment;
16 16
17 //! Interface making it possible to dynamicly create gui elements 17 //! Interface making it possible to dynamicly create gui elements
18 class CGUIEditFactory : public IGUIElementFactory 18 class CGUIEditFactory : public IGUIElementFactory
19 { 19 {
20 public: 20 public:
21 21
22 CGUIEditFactory(IGUIEnvironment* env); 22 CGUIEditFactory(IGUIEnvironment* env);
23 ~CGUIEditFactory(); 23 ~CGUIEditFactory();
24 24
25 //! adds a GUI element to the GUI Environment based on its type name 25 //! adds a GUI element to the GUI Environment based on its type name
26 /** \param typeName: Type name of the element to add. 26 /** \param typeName: Type name of the element to add.
27 \param parent: Parent scene node of the new element, can be null to add it to the root. 27 \param parent: Parent scene node of the new element, can be null to add it to the root.
28 \return Returns pointer to the new element or null if not successful. */ 28 \return Returns pointer to the new element or null if not successful. */
29 virtual IGUIElement* addGUIElement(const c8* typeName, IGUIElement* parent=0); 29 virtual IGUIElement* addGUIElement(const c8* typeName, IGUIElement* parent=0);
30 30
31 //! returns amount of GUI element types this factory is able to create 31 //! returns amount of GUI element types this factory is able to create
32 virtual s32 getCreatableGUIElementTypeCount() const; 32 virtual s32 getCreatableGUIElementTypeCount() const;
33 33
34 //! returns type name of a createable GUI element type by index 34 //! returns type name of a createable GUI element type by index
35 /** \param idx: Index of the type in this factory. Must be a value between 0 and 35 /** \param idx: Index of the type in this factory. Must be a value between 0 and
36 getCreatableGUIElementTypeCount() */ 36 getCreatableGUIElementTypeCount() */
37 virtual const c8* getCreateableGUIElementTypeName(s32 idx) const; 37 virtual const c8* getCreateableGUIElementTypeName(s32 idx) const;
38 38
39 // not used: 39 // not used:
40 virtual const c8* getCreateableGUIElementTypeName(EGUI_ELEMENT_TYPE type) const {return 0;} ; 40 virtual const c8* getCreateableGUIElementTypeName(EGUI_ELEMENT_TYPE type) const {return 0;} ;
41 virtual EGUI_ELEMENT_TYPE getCreateableGUIElementType(s32 idx) const { return EGUIET_ELEMENT;}; 41 virtual EGUI_ELEMENT_TYPE getCreateableGUIElementType(s32 idx) const { return EGUIET_ELEMENT;};
42 virtual IGUIElement* addGUIElement(EGUI_ELEMENT_TYPE type, IGUIElement* parent=0) {return 0;}; 42 virtual IGUIElement* addGUIElement(EGUI_ELEMENT_TYPE type, IGUIElement* parent=0) {return 0;};
43 private: 43 private:
44 44
45 IGUIEnvironment* Environment; 45 IGUIEnvironment* Environment;
46 }; 46 };
47 47
48 48
49} // end namespace scene 49} // end namespace scene
50} // end namespace irr 50} // end namespace irr
51 51
52#endif 52#endif
53 53