CL_ComponentStyle - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# Class CL_ComponentStyle

Component Style interface. More...

Derived from: none
Derived by: CL_Button_Silver CL_CheckBox_Silver CL_Frame_Silver CL_Image_Silver CL_InputBox_Silver CL_Label_Silver CL_ListBox_Silver CL_MenuItem_Silver CL_MenuNode_Silver CL_Menu_Silver CL_ProgressBar_Silver CL_RadioButton_Silver CL_RichEdit_Silver CL_ScrollBar_Silver CL_TreeItem_Silver CL_TreeView_Silver CL_Window_Silver
Group: GUI (Framework)

#include <ClanLib/gui.h>

Construction:

CL_ComponentStyle | Construct a component style.

Attributes:

get_component | Returns the component that is being styled.

Detailed description:

!group=GUI/Framework! !header=gui.h!

The component style class is part of the style customization system of the GUI. Each 'style' 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 style 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.

Questions or comments, write to the ClanLib mailing list.