25 #ifndef __I6ENGINE_MODULES_GUIFACTORY_H__
26 #define __I6ENGINE_MODULES_GUIFACTORY_H__
31 #include "boost/function.hpp"
42 typedef boost::function<api::GUIWidget * (const std::string & name, const std::string & style)>
GUIWidget_factory;
53 std::map<std::string, GUIWidget_factory> _templates;
71 api::GUIWidget * createGUIWidget(
const std::string & name,
const std::string & type,
const std::string & style)
const;
79 void registerGUIWidgetTemplate(
const std::string & name,
const GUIWidget_factory & createFunc);
This class provides methods for creating different kinds of GUI elements.
boost::function< api::GUIWidget *(const std::string &name, const std::string &style)> GUIWidget_factory
This class provides method to load a canvas file.
This class interacts with CEGUI. It's methods are executed in the OGRE / CEGUI thread.