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

crs::check_box Class Reference

#include <check_box.h>

Inheritance diagram for crs::check_box:

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

Public Methods

 check_box (base_control *Parent, check_events *Events, const std::string Caption, const bool Checked, const unsigned int Left, const unsigned int Top, const unsigned int Width, style::styles Style=style::rect, chtype clb='[', chtype crb=']')
virtual void draw ()
virtual bool keyPress (const int key)

Public Attributes

property< check_box, read_write,
bool > 
checked

Private Methods

const bool & getChecked ()
void setChecked (const bool &Checked)

Private Attributes

bool mChecked
std::string mCaption

Constructor & Destructor Documentation

crs::check_box::check_box base_control   Parent,
check_events   Events,
const std::string    Caption,
const bool    Checked,
const unsigned int    Left,
const unsigned int    Top,
const unsigned int    Width,
style::styles    Style = style::rect,
chtype    clb = '[',
chtype    crb = ']'
 

Definition at line 4 of file check_box.cpp.


Member Function Documentation

void crs::check_box::draw   [virtual]
 

Reimplemented from crs::base_control.

Definition at line 13 of file check_box.cpp.

References crs::base_control::buffer, crs::styled_ctrl::custom_left_border, crs::styled_ctrl::custom_right_border, mCaption, crs::styled_ctrl::mStyle, and crs::drawing_area::setText().

const bool & crs::check_box::getChecked   [private]
 

Definition at line 29 of file check_box.cpp.

References mChecked.

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

Reimplemented from crs::base_control.

Definition at line 23 of file check_box.cpp.

References mChecked.

void crs::check_box::setChecked const bool &    Checked [private]
 

Definition at line 33 of file check_box.cpp.

References mChecked.


Member Data Documentation

property< check_box, read_write, bool > crs::check_box::checked
 

Definition at line 30 of file check_box.h.

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

Definition at line 21 of file check_box.h.

Referenced by draw().

bool crs::check_box::mChecked [private]
 

Definition at line 20 of file check_box.h.

Referenced by getChecked(), keyPress(), and setChecked().


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