Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

crs::push_button Class Reference

#include <push_button.h>

Inheritance diagram for crs::push_button:

crs::focused_ctrl crs::styled_ctrl crs::base_control List of all members.

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

Constructor & Destructor Documentation

crs::push_button::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 = ']'
 

Definition at line 5 of file push_button.cpp.


Member Function Documentation

void crs::push_button::draw   [virtual]
 

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().

const std::string & crs::push_button::getCaption   [private]
 

Definition at line 13 of file push_button.cpp.

References mCaption.

bool crs::push_button::keyPress const int    key [virtual]
 

Reimplemented from crs::base_control.

Definition at line 20 of file push_button.cpp.

References crs::base_control::events.

void crs::push_button::setCaption const std::string &    Caption [private]
 

Definition at line 16 of file push_button.cpp.

References mCaption.


Member Data Documentation

property< push_button, read_write, std::string > crs::push_button::caption
 

Definition at line 28 of file push_button.h.

std::string crs::push_button::mCaption [private]
 

Definition at line 21 of file push_button.h.

Referenced by draw(), getCaption(), and setCaption().


The documentation for this class was generated from the following files:
Generated on Mon May 19 20:36:04 2003 for cursive by doxygen1.2.18