<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_MenuItem - 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_MenuItem</h1> <p> Label component <a href="#description">More...</a></p> <p>Derived from: <a href="CL_Component.html">CL_Component</a> <br> Derived by: <i>none</i> <br>Group: GUI (Controls)</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_MenuItem__CL_MenuItem.html">CL_MenuItem</a></p></td><td valign=top><p> MenuItem Constructor</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_MenuItem__get_text.html">get_text</a></p></td><td valign=top><p> Returns the menu item text.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__use_icon.html">use_icon</a></p></td><td valign=top><p> Returns true if the menu item can have an icon.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__is_toggling.html">is_toggling</a></p></td><td valign=top><p> Returns true if the menu item is in toggle mode, otherwise false.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__is_selected.html">is_selected</a></p></td><td valign=top><p> Returns true if the menu item is selected</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_MenuItem__set_toggling.html">set_toggling</a></p></td><td valign=top><p> Sets the item to toggle mode (true) or normal mode (false). Default is false.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__set_use_icon.html">set_use_icon</a></p></td><td valign=top><p> Sets the item to toggle mode (true) or normal mode (false). Default is false.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__set_selected.html">set_selected</a></p></td><td valign=top><p> Sets the menu items selected status, if in toggle mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__set_text.html">set_text</a></p></td><td valign=top><p> Sets the menu item text.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_MenuItem__clear.html">clear</a></p></td><td valign=top><p> Clears any menu item text. Equivalent with set_text("").</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=GUI/Controls! !header=gui.h! <!-- 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 -->