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

# Class CL_StyleManager_Default

Style manager that uses the default clanlib gui style.
Contained in: global
Derived from: CL_StyleManager
Derived by: none
Group: GUI (Controls)

#include <ClanLib/gui.h>

### public function member index:

### Construction:

`` | `CL_StyleManager_Default` | `(`CL_ResourceManager`* `resources`)`;
``virtual`` | `~CL_StyleManager_Default` | `()`;

### Attributes:

``void`` | `get_color` | `(`GUIColor` `col`, `float`& `r`, `float`& `g`, `float`& `b`, `float`& `a`)`;

### Operations:

``void`` | `fill_rect` | `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `col`)`;
``void`` | `draw_rect` | `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `col`)`;
``void`` | `draw_line` | `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `col`)`;
``void`` | `draw_box` | `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `topleft`, `GUIColor` `bottomright`)`;

### Overrideables:

``virtual` `CL_Component`*` | `create_component` | `(`const` `std::string`& `type`, `CL_Component`* `parent`)`;
``virtual` `void`` | `connect_styles` | `(`const` `std::string`& `type`, `CL_Component`* `owner`)`;

### private function member index:

### Implementation:

`` | `CL_StyleManager_Default` | `(`const` `CL_StyleManager_Default`& `copy`)`;

## Description:

## Function Member Descriptions:

CL_StyleManager_Default::CL_StyleManager_Default - Construct a default theme style manager using the specified resources.
`` `CL_StyleManager_Default` `(`CL_ResourceManager`* `resources`)`;

CL_StyleManager_Default::connect_styles - Connect component styles to component.
The 'type' parameter indicates what type the component is.
``virtual` `void`` `connect_styles` `(`const` `std::string`& `type`, `CL_Component`* `owner`)`;

CL_StyleManager_Default::create_component - Create a component based on a type name.
``virtual` `CL_Component`*` `create_component` `(`const` `std::string`& `type`, `CL_Component`* `parent`)`;

CL_StyleManager_Default::draw_box - Draw box
``void`` `draw_box` `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `topleft`, `GUIColor` `bottomright`)`;

CL_StyleManager_Default::draw_line - Draw line
``void`` `draw_line` `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `col`)`;

CL_StyleManager_Default::draw_rect - Draw rect
``void`` `draw_rect` `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `col`)`;

CL_StyleManager_Default::fill_rect - Fill rect
``void`` `fill_rect` `(`int` `x1`, `int` `y1`, `int` `x2`, `int` `y2`, `GUIColor` `col`)`;

CL_StyleManager_Default::~CL_StyleManager_Default - Destructor.
``virtual`` `~CL_StyleManager_Default` `()`;

## Variable Member Descriptions: