Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 57

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_Button - 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_Button</h1>
<p>  Button component <a href="#description">More...</a></p>
<p>Derived from:
<a href="CL_Component.html">CL_Component</a>
<br>
Derived by:
<a href="CL_CheckBox.html">CL_CheckBox</a>
<a href="CL_RadioButton.html">CL_RadioButton</a>
<br>Group: GUI (Controls)</p>
<p>
#include &lt;ClanLib/gui.h&gt;
<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_Button__CL_Button.html">CL_Button</a></p></td><td valign=top><p>  Button 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_Button__get_text.html">get_text</a></p></td><td valign=top><p>  Returns the button text.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__is_toggle_button.html">is_toggle_button</a></p></td><td valign=top><p>  Returns true if the button is a toggle button.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__is_down.html">is_down</a></p></td><td valign=top><p>  Returns true if the button state is down, or false if it is raised.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__is_drawn_down.html">is_drawn_down</a></p></td><td valign=top><p>  Returns true if the button is visually pressed down, or false if it is raised.
  This can be used by theme, to get immediate state of the button.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_Button__set_text.html">set_text</a></p></td><td valign=top><p>  Sets the button text.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__set_toggle_mode.html">set_toggle_mode</a></p></td><td valign=top><p>  If toggle is true, pressing the button toggles it between an On and and Off state. 
  If toggle is false, pressing the button causes an action, then the button returns to the unpressed state. </p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__set_down.html">set_down</a></p></td><td valign=top><p>  Sets the state of the button to pressed down if enable is true or to standing up if enable is false. 
  No signals are not emitted by this function. </p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__toggle.html">toggle</a></p></td><td valign=top><p>  Toggle the button.
  The toggled() signal are emitted by this function.</p></td></tr></table>
<p><b>Signals:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_Button__sig_toggled.html">sig_toggled</a></p></td><td valign=top><p>  This signal is emitted whenever a toggle button changes status.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__sig_clicked.html">sig_clicked</a></p></td><td valign=top><p>  This signal is emitted when the button is activated (i.e. first pressed down and then released when the mouse cursor is inside the button).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__sig_pressed.html">sig_pressed</a></p></td><td valign=top><p>  This signal is emitted when the button is pressed down. 
  In most cases, you want to use sig_clicked() instead.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Button__sig_released.html">sig_released</a></p></td><td valign=top><p>  This signal is emitted when the button is released.
  In most cases, you want to use sig_clicked() instead.</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 -->