Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_ComponentManager

Manages components loaded from a gui definition file.
Contained in: global
Derived from: none
Derived by: none
Group: GUI (Framework)

#include <ClanLib/gui.h>

### public function member index:
### Construction:
``static` `CL_ComponentManager`*` | `create` | `(`const` `std::string`& `resource_id`, `CL_ResourceManager`* `res_manager`, `CL_StyleManager`* `style`, `CL_Component`* `parent`)`;
``static` `CL_ComponentManager`*` | `create` | `(`const` `std::string`& `filename`, `bool` `is_datafile`, `CL_StyleManager`* `style`, `CL_Component`* `parent`)`;
`` | `CL_ComponentManager` | `(`const` `std::string`& `resource_id`, `CL_ResourceManager`* `res_manager`, `CL_StyleManager`* `style`, `CL_Component`* `parent`)`;
`` | `CL_ComponentManager` | `(`const` `std::string`& `resource_id`, `CL_Component`* `parent`)`;
`` | `CL_ComponentManager` | `(`const` `std::string`& `filename`, `bool` `is_datafile`, `CL_StyleManager`* `style`, `CL_Component`* `parent`)`;
`` | `CL_ComponentManager` | `(`const` `CL_ComponentManager`& `copy`)`;
``virtual`` | `~CL_ComponentManager` | `()`;
### Attributes:
``static` `CL_Component`*` | `create_component` | `(`const` `std::string`& `type`, `CL_Component`* `parent`, `CL_StyleManager`* `style`)`;
``CL_Component`*` | `get_component` | `(`const` `std::string`& `name`) `const``;
``CL_StyleManager`*` | `get_style_manager` | `() `const``;
### Operations:
``CL_ComponentManager`&` | `operator``=` | `(`const` `CL_ComponentManager`& `copy`)`;

## Description:

## Function Member Descriptions:

CL_ComponentManager::create - Depricated; 'new's a component manager. Please use the constructor directly instead.
``static` `CL_ComponentManager`*` `create``(`const` `std::string`& `resource_id`, `CL_ResourceManager`* `res_manager`, `CL_StyleManager`* `style`, `CL_Component`* `parent`)`;

CL_ComponentManager::create - Depricated; 'new's a component manager. Please use the constructor directly instead.
``static` `CL_ComponentManager`*` `create``(`const` `std::string`& `filename`, `bool` `is_datafile`, `CL_StyleManager`* `style`, `CL_Component`* `parent`)`;

CL_ComponentManager::create_component - Creates a component of type 'component_type_name'. If no such component
type exists, a CL_Error is thrown. The method invokes the specific component types
virtual 'create_component' method with the passed arguments.
``static` `CL_Component`*` `create_component``(`const` `std::string`& `type`, `CL_Component`* `parent`, `CL_StyleManager`* `style`)`;

CL_ComponentManager::get_component - Returns the component identified by the specified name in the gui definition file.
If the component is not found, a CL_Error exception is thrown.
``CL_Component`*` `get_component``(`const` `std::string`& `name`) `const``;

CL_ComponentManager::~CL_ComponentManager - Component manager destructor.
``virtual`` `~CL_ComponentManager``()`;

## Variable Member Descriptions: