<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_ComponentStyle - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_ComponentStyle</h1> <p> Component Style interface. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <a href="CL_Button_Silver.html">CL_Button_Silver</a> <a href="CL_CheckBox_Silver.html">CL_CheckBox_Silver</a> <a href="CL_Frame_Silver.html">CL_Frame_Silver</a> <a href="CL_Image_Silver.html">CL_Image_Silver</a> <a href="CL_InputBox_Silver.html">CL_InputBox_Silver</a> <a href="CL_Label_Silver.html">CL_Label_Silver</a> <a href="CL_ListBox_Silver.html">CL_ListBox_Silver</a> <a href="CL_MenuItem_Silver.html">CL_MenuItem_Silver</a> <a href="CL_MenuNode_Silver.html">CL_MenuNode_Silver</a> <a href="CL_Menu_Silver.html">CL_Menu_Silver</a> <a href="CL_ProgressBar_Silver.html">CL_ProgressBar_Silver</a> <a href="CL_RadioButton_Silver.html">CL_RadioButton_Silver</a> <a href="CL_RichEdit_Silver.html">CL_RichEdit_Silver</a> <a href="CL_ScrollBar_Silver.html">CL_ScrollBar_Silver</a> <a href="CL_TreeItem_Silver.html">CL_TreeItem_Silver</a> <a href="CL_TreeView_Silver.html">CL_TreeView_Silver</a> <a href="CL_Window_Silver.html">CL_Window_Silver</a> <br>Group: GUI (Framework)</p> <p> #include <ClanLib/gui.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_ComponentStyle__CL_ComponentStyle.html">CL_ComponentStyle</a></p></td><td valign=top><p> Construct a component style.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_ComponentStyle__get_component.html">get_component</a></p></td><td valign=top><p> Returns the component that is being styled.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=GUI/Framework! !header=gui.h! <p>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.</p> <p>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.</p> <p>For source examples of how this is done, have a look at the GUIGL example.</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->