#include <push_button.h>
Inheritance diagram for crs::push_button:
Public Methods | |
push_button (base_control *Parent, button_events *Events, const std::string Caption, const unsigned int Left=0, const unsigned int Top=0, const unsigned int Width=3, style::styles Style=style::rect, const chtype clb='[', const chtype crb=']') | |
virtual bool | keyPress (const int key) |
virtual void | draw () |
Public Attributes | |
property< push_button, read_write, std::string > | caption |
Private Methods | |
const std::string & | getCaption () |
void | setCaption (const std::string &Caption) |
Private Attributes | |
std::string | mCaption |
|
Definition at line 5 of file push_button.cpp. |
|
Reimplemented from crs::base_control. Definition at line 26 of file push_button.cpp. References crs::base_control::buffer, crs::styled_ctrl::custom_left_border, crs::styled_ctrl::custom_right_border, mCaption, crs::styled_ctrl::mStyle, crs::base_control::mWidth, and crs::drawing_area::setText(). |
|
Definition at line 13 of file push_button.cpp. References mCaption. |
|
Reimplemented from crs::base_control. Definition at line 20 of file push_button.cpp. References crs::base_control::events. |
|
Definition at line 16 of file push_button.cpp. References mCaption. |
|
Definition at line 28 of file push_button.h. |
|
Definition at line 21 of file push_button.h. Referenced by draw(), getCaption(), and setCaption(). |