Home | All Classes | Grouped Classes | Index | Search
Button component More...
Derived from:
CL_Component
Derived by:
CL_CheckBox
CL_RadioButton
Group: GUI (Controls)
#include <ClanLib/gui.h>
Construction:
Button Constructor |
Attributes:
Returns the button text. | |
Returns true if the button is a toggle button. | |
Returns true if the button state is down, or false if it is raised. | |
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. |
Operations:
Sets the button text. | |
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. | |
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. | |
Toggle the button. The toggled() signal are emitted by this function. |
Signals:
This signal is emitted whenever a toggle button changes status. | |
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). | |
This signal is emitted when the button is pressed down. In most cases, you want to use sig_clicked() instead. | |
This signal is emitted when the button is released. In most cases, you want to use sig_clicked() instead. |
Detailed description:
!group=GUI/Controls! !header=gui.h!