![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Button component
Contained in: global
Derived from:
CL_Component
Derived by:
CL_CheckBox
CL_RadioButton
Group: GUI (Controls)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_Button | (CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_Button | (const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_Button | (const CL_Point& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_Button | (const CL_Rect& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_Button | (const CL_Point& pos, const std::string& text, CL_Surface* surface_up, CL_Surface* surface_down, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_Button | (const CL_Point& pos, const std::string& text, CL_Surface* surface_up, CL_Surface* surface_down, CL_Surface* surface_disabled, CL_Surface* surface_highlighted, CL_Component* parent, CL_StyleManager* style = NULL); | |
virtual | ~CL_Button | (); |
Attributes: |
||
const std::string& | get_text | () const; |
bool | is_toggle_button | () const; |
bool | is_down | () const; |
CL_Surface* | get_surface_up | () const; |
CL_Surface* | get_surface_down | () const; |
CL_Surface* | get_surface_highlighted | () const; |
CL_Surface* | get_surface_disabled | () const; |
Operations: |
||
void | set_text | (const std::string& text); |
void | set_toggle_mode | (bool toggle = true); |
void | set_down | (bool enable = true); |
void | toggle | (); |
void | set_surface_up | (CL_Surface* surface); |
void | set_surface_down | (CL_Surface* surface); |
void | set_surface_highlighted | (CL_Surface* surface); |
void | set_surface_disabled | (CL_Surface* surface); |
Signals: |
||
CL_Signal_v1<bool>& | sig_toggled | (); |
CL_Signal_v0& | sig_clicked | (); |
CL_Signal_v0& | sig_pressed | (); |
CL_Signal_v0& | sig_released | (); |
private function member index: |
||
Implementation: |
||
CL_Button | (const CL_Button& copy); | |
bool on - Is true if the button is on, or false otherwise.