Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials |
#include <IGUIElementFactory.h>
Public Member Functions | |
virtual IGUIElement * | addGUIElement (const c8 *typeName, IGUIElement *parent=0)=0 |
adds a GUI element to the GUI Environment based on its type name | |
virtual IGUIElement * | addGUIElement (EGUI_ELEMENT_TYPE type, IGUIElement *parent=0)=0 |
adds an element to the gui environment based on its type id | |
virtual s32 | getCreatableGUIElementTypeCount () const =0 |
Get amount of GUI element types this factory is able to create. | |
virtual EGUI_ELEMENT_TYPE | getCreateableGUIElementType (s32 idx) const =0 |
Get type of a createable element type. | |
virtual const c8 * | getCreateableGUIElementTypeName (EGUI_ELEMENT_TYPE type) const =0 |
returns type name of a createable GUI element | |
virtual const c8 * | getCreateableGUIElementTypeName (s32 idx) const =0 |
Get type name of a createable GUI element type by index. |
To be able to add custom elements to Irrlicht and to make it possible for the scene manager to save and load them, simply implement this interface and register it in your gui environment via IGUIEnvironment::registerGUIElementFactory. Note: When implementing your own element factory, don't call IGUIEnvironment::grab() to increase the reference counter of the environment. This is not necessary because the it will grab() the factory anyway, and otherwise cyclic references will be created.
Definition at line 26 of file IGUIElementFactory.h.
virtual IGUIElement* irr::gui::IGUIElementFactory::addGUIElement | ( | const c8 * | typeName, | |
IGUIElement * | parent = 0 | |||
) | [pure virtual] |
adds a GUI element to the GUI Environment based on its type name
typeName,: | Type name of the element to add. | |
parent,: | Parent scene node of the new element, can be null to add it to the root. |
virtual IGUIElement* irr::gui::IGUIElementFactory::addGUIElement | ( | EGUI_ELEMENT_TYPE | type, | |
IGUIElement * | parent = 0 | |||
) | [pure virtual] |
virtual s32 irr::gui::IGUIElementFactory::getCreatableGUIElementTypeCount | ( | ) | const [pure virtual] |
Get amount of GUI element types this factory is able to create.
virtual EGUI_ELEMENT_TYPE irr::gui::IGUIElementFactory::getCreateableGUIElementType | ( | s32 | idx | ) | const [pure virtual] |
Get type of a createable element type.
idx,: | Index of the element type in this factory. Must be a value between 0 and getCreatableGUIElementTypeCount() |
virtual const c8* irr::gui::IGUIElementFactory::getCreateableGUIElementTypeName | ( | EGUI_ELEMENT_TYPE | type | ) | const [pure virtual] |
returns type name of a createable GUI element
type,: | Type of GUI element. |
virtual const c8* irr::gui::IGUIElementFactory::getCreateableGUIElementTypeName | ( | s32 | idx | ) | const [pure virtual] |
Get type name of a createable GUI element type by index.
idx,: | Index of the type in this factory. Must be a value between 0 and getCreatableGUIElementTypeCount() |
The Irrlicht
Engine Documentation © 2003-2009 by Nikolaus Gebhardt. Generated
on Sun Jan 10 09:24:10 2010 by Doxygen
(1.5.6) |