Home | All Classes | Grouped Classes | Index | Search

CL_ComponentManager::CL_ComponentManager

Constructs a component manager.

	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);

Parameters:

resource_id
Resource identifier used to load gui definition.
res_manager
Resource manager for the resource identifier.
style
Style manager to create components with. If set to null it will use the style from the parent component.
parent
Parent component of top components in gui definition.
filename
File to load gui definition from.
input_provider
Input source provider to use. If set to null it will use the default file provider.
delete_provider
If true the input source provider will be deleted after use.
document
XML Document to load components from.
element
Element to use as the top level components element.

Detailed description:

If no resource manager or style is specified, it inherits style manager and resources from parent component.

See also:

CL_Component | CL_ComponentManager | CL_DomDocument | CL_DomElement | CL_InputSource | CL_InputSourceProvider | CL_Resource | CL_ResourceManager | CL_StyleManager



Questions or comments, write to the ClanLib mailing list.