aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h140
1 files changed, 70 insertions, 70 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h b/libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h
index fd92c6d..e0d03e8 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CDefaultGUIElementFactory.h
@@ -1,70 +1,70 @@
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_DEFAULT_GUI_ELEMENT_FACTORY_H_INCLUDED__ 5#ifndef __C_DEFAULT_GUI_ELEMENT_FACTORY_H_INCLUDED__
6#define __C_DEFAULT_GUI_ELEMENT_FACTORY_H_INCLUDED__ 6#define __C_DEFAULT_GUI_ELEMENT_FACTORY_H_INCLUDED__
7 7
8#include "IrrCompileConfig.h" 8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_ 9#ifdef _IRR_COMPILE_WITH_GUI_
10 10
11#include "IGUIElementFactory.h" 11#include "IGUIElementFactory.h"
12 12
13namespace irr 13namespace irr
14{ 14{
15namespace gui 15namespace gui
16{ 16{
17 class IGUIElement; 17 class IGUIElement;
18 class IGUIEnvironment; 18 class IGUIEnvironment;
19 19
20 //! This interface makes it possible to dynamically create gui elements. 20 //! This interface makes it possible to dynamically create gui elements.
21 class CDefaultGUIElementFactory : public IGUIElementFactory 21 class CDefaultGUIElementFactory : public IGUIElementFactory
22 { 22 {
23 public: 23 public:
24 24
25 CDefaultGUIElementFactory(IGUIEnvironment* env); 25 CDefaultGUIElementFactory(IGUIEnvironment* env);
26 26
27 //! Adds an element to the gui environment based on its type id. 27 //! Adds an element to the gui environment based on its type id.
28 /** \param type: Type of the element to add. 28 /** \param type: Type of the element to add.
29 \param parent: Parent scene node of the new element. A value of 0 adds it to the root. 29 \param parent: Parent scene node of the new element. A value of 0 adds it to the root.
30 \return Returns pointer to the new element or 0 if unsuccessful. */ 30 \return Returns pointer to the new element or 0 if unsuccessful. */
31 virtual IGUIElement* addGUIElement(EGUI_ELEMENT_TYPE type, IGUIElement* parent=0); 31 virtual IGUIElement* addGUIElement(EGUI_ELEMENT_TYPE type, IGUIElement* parent=0);
32 32
33 //! Adds a GUI element to the GUI Environment based on its type name. 33 //! Adds a GUI element to the GUI Environment based on its type name.
34 /** \param typeName: Type name of the element to add. Taken from the GUIElementTypeNames c8* array. 34 /** \param typeName: Type name of the element to add. Taken from the GUIElementTypeNames c8* array.
35 \param parent: Parent scene node of the new element. A value of 0 adds it to the root. 35 \param parent: Parent scene node of the new element. A value of 0 adds it to the root.
36 \return Returns pointer to the new element or 0 if unsuccessful. */ 36 \return Returns pointer to the new element or 0 if unsuccessful. */
37 virtual IGUIElement* addGUIElement(const c8* typeName, IGUIElement* parent=0); 37 virtual IGUIElement* addGUIElement(const c8* typeName, IGUIElement* parent=0);
38 38
39 //! Returns the amount of GUI element types this factory is able to create. 39 //! Returns the amount of GUI element types this factory is able to create.
40 virtual s32 getCreatableGUIElementTypeCount() const; 40 virtual s32 getCreatableGUIElementTypeCount() const;
41 41
42 //! Returns the type of a createable GUI element type based on the index. 42 //! Returns the type of a createable GUI element type based on the index.
43 /** \param idx: Index of the element type in this factory. The value must be equal or greater than 0 43 /** \param idx: Index of the element type in this factory. The value must be equal or greater than 0
44 and lower than getCreatableGUIElementTypeCount(). */ 44 and lower than getCreatableGUIElementTypeCount(). */
45 virtual EGUI_ELEMENT_TYPE getCreateableGUIElementType(s32 idx) const; 45 virtual EGUI_ELEMENT_TYPE getCreateableGUIElementType(s32 idx) const;
46 46
47 //! Returns the type name of a createable GUI element type based on the index. 47 //! Returns the type name of a createable GUI element type based on the index.
48 /** \param idx: Index of the element type in this factory. The value must be equal or greater than 0 48 /** \param idx: Index of the element type in this factory. The value must be equal or greater than 0
49 and lower than getCreatableGUIElementTypeCount(). */ 49 and lower than getCreatableGUIElementTypeCount(). */
50 virtual const c8* getCreateableGUIElementTypeName(s32 idx) const; 50 virtual const c8* getCreateableGUIElementTypeName(s32 idx) const;
51 51
52 //! Returns the type name of a createable GUI element based on its type. 52 //! Returns the type name of a createable GUI element based on its type.
53 /** \param type: Type of the GUI element. 53 /** \param type: Type of the GUI element.
54 \return: Returns the name of the type if this factory can create it, otherwise it returns 0. */ 54 \return: Returns the name of the type if this factory can create it, otherwise it returns 0. */
55 virtual const c8* getCreateableGUIElementTypeName(EGUI_ELEMENT_TYPE type) const; 55 virtual const c8* getCreateableGUIElementTypeName(EGUI_ELEMENT_TYPE type) const;
56 56
57 private: 57 private:
58 58
59 EGUI_ELEMENT_TYPE getTypeFromName(const c8* name) const; 59 EGUI_ELEMENT_TYPE getTypeFromName(const c8* name) const;
60 60
61 IGUIEnvironment* Environment; 61 IGUIEnvironment* Environment;
62 }; 62 };
63 63
64 64
65} // end namespace gui 65} // end namespace gui
66} // end namespace irr 66} // end namespace irr
67 67
68#endif // _IRR_COMPILE_WITH_GUI_ 68#endif // _IRR_COMPILE_WITH_GUI_
69 69
70#endif // __C_DEFAULT_GUI_ELEMENT_FACTORY_H_INCLUDED__ 70#endif // __C_DEFAULT_GUI_ELEMENT_FACTORY_H_INCLUDED__