Home | All Classes | Grouped Classes | Index | Search
Component Style interface. More...
Derived from:
none
Derived by:
none
Group: GUI (Framework)
#include <ClanLib/gui.h>
Construction:
Construct a component style. |
Attributes:
Returns the component that is being styled. |
Detailed description:
The component style class is part of the theme customization system of the GUI. Each 'theme' for a component is implemented by inheriating CL_ComponentStyle and then attaching it to the component it is responsible of visualizing.
When a component is constructed, it will contact its CL_StyleManager and ask it to attach the component styles for its theme to the component. The general principle in the component style system is that a inheriated CL_ComponentStyle object will hook itself into signals in the component it is visualizing, thus keeping a kind of document/view relationship with its component.
For source examples of how this is done, have a look at the GUIGL example.