<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_ComponentType::create_component - 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_ComponentType::create_component</h1> <p> Creates a component of type 'component_type_name'. Create component.</p> <pre> CL_Component* create_component( const std::string& type, CL_Component* parent, CL_StyleManager* style); CL_Component* create_component( CL_Component* parent, CL_StyleManager* style); </pre> <p><b>Detailed description:</b></p> <p>If no such component type exists, a CL_Error is thrown. The method invokes the specific component type's virtual 'create_component' method with the passed arguments.</p> <p><b>See also:</b></p> <p><a href="CL_Component.html">CL_Component</a> | <a href="CL_ComponentType.html">CL_ComponentType</a> | <a href="CL_Error.html">CL_Error</a> | <a href="CL_StyleManager.html">CL_StyleManager</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 -->