Public Member Functions | Private Member Functions | Private Attributes

CheckBox Class Reference

A CheckBox can be toggled on/off. More...

#include <CheckBox.h>

Inheritance diagram for CheckBox:
Control Broadcaster Listener

List of all members.

Public Member Functions

 CheckBox (const std::string &caption, int w=12, int h=12)
void setToggled (bool toggled)
bool isToggled ()

Private Member Functions

void initialize ()
void drawSkin ()
void drawPlain ()
void onClick (Event *event)
void onEnabled ()

Private Attributes

bool mIsToggled

Detailed Description

A CheckBox can be toggled on/off.


Constructor & Destructor Documentation

CheckBox::CheckBox ( const std::string &  caption,
int  w = 12,
int  h = 12 
)

Member Function Documentation

void CheckBox::drawPlain (  )  [private, virtual]

Draws a Control without a Skin.

Reimplemented from Control.

void CheckBox::drawSkin (  )  [private, virtual]

Draws a Control using a Skin.

Reimplemented from Control.

void CheckBox::initialize (  )  [private, virtual]

Reimplemented from Control.

bool CheckBox::isToggled (  )  [inline]
void CheckBox::onClick ( Event event  )  [private, virtual]

Reimplemented from Control.

void CheckBox::onEnabled (  )  [private, virtual]

Called whenever a Control's setEnabled() function is called.

Reimplemented from Control.

void CheckBox::setToggled ( bool  toggled  ) 

Member Data Documentation

bool CheckBox::mIsToggled [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines