<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_ComponentManager::CL_ComponentManager - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_ComponentManager::CL_ComponentManager</h1> <p> Constructs a component manager.</p> <pre> CL_ComponentManager( const std::string& resource_id, CL_ResourceManager* res_manager, CL_Component* parent, CL_StyleManager* style = NULL); CL_ComponentManager( const std::string& filename, CL_Component* parent, CL_StyleManager* style = NULL, CL_InputSourceProvider* input_provider = NULL, bool delete_provider = false); CL_ComponentManager( const CL_DomDocument& document, const CL_DomElement& element, CL_Component* parent, CL_StyleManager* style = NULL); CL_ComponentManager( const CL_ComponentManager& copy); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>resource_id</i></dt><dd>Resource identifier used to load gui definition.</dd> <dt><i>res_manager</i></dt><dd>Resource manager for the resource identifier.</dd> <dt><i>style</i></dt><dd>Style manager to create components with. If set to null it will use the style from the parent component.</dd> <dt><i>parent</i></dt><dd>Parent component of top components in gui definition.</dd> <dt><i>filename</i></dt><dd>File to load gui definition from.</dd> <dt><i>input_provider</i></dt><dd>Input source provider to use. If set to null it will use the default file provider.</dd> <dt><i>delete_provider</i></dt><dd>If true the input source provider will be deleted after use.</dd> <dt><i>document</i></dt><dd>XML Document to load components from.</dd> <dt><i>element</i></dt><dd>Element to use as the top level components element.</dd> </dl> <p><b>Detailed description:</b></p> <p>If no resource manager or style is specified, it inherits style manager and resources from parent component.</p> <p><b>See also:</b></p> <p><a href="CL_InputSourceProvider.html">CL_InputSourceProvider</a> | <a href="CL_Component.html">CL_Component</a> | <a href="CL_ResourceManager.html">CL_ResourceManager</a> | <a href="CL_ComponentManager.html">CL_ComponentManager</a> | <a href="CL_Resource.html">CL_Resource</a> | <a href="CL_InputSource.html">CL_InputSource</a> | <a href="CL_DomElement.html">CL_DomElement</a> | <a href="CL_StyleManager.html">CL_StyleManager</a> | <a href="CL_DomDocument.html">CL_DomDocument</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->