CheckBox Class Reference
[Core GUI related classes (widgets)]

#include <checkbox.h>

List of all members.


Detailed Description

Check box widget.

Same as the Guichan check box but with custom look.

Definition at line 34 of file checkbox.h.


Public Member Functions

 CheckBox (const std::string &caption, bool selected=false)
 Constructor.
 ~CheckBox ()
 Destructor.
void draw (gcn::Graphics *graphics)
 Draws the caption, then calls drawBox to draw the check box.
void drawBox (gcn::Graphics *graphics)
 Draws the check box, not the caption.

Static Private Attributes

static int instances = 0
static float mAlpha = 1.0
static ImagecheckBoxNormal
static ImagecheckBoxChecked
static ImagecheckBoxDisabled
static ImagecheckBoxDisabledChecked

Constructor & Destructor Documentation

CheckBox::CheckBox ( const std::string &  caption,
bool  selected = false 
)

Constructor.

Definition at line 39 of file checkbox.cpp.

CheckBox::~CheckBox (  ) 

Destructor.

Definition at line 60 of file checkbox.cpp.


Member Function Documentation

void CheckBox::draw ( gcn::Graphics *  graphics  ) 

Draws the caption, then calls drawBox to draw the check box.

Definition at line 73 of file checkbox.cpp.

void CheckBox::drawBox ( gcn::Graphics *  graphics  ) 

Draws the check box, not the caption.

Definition at line 85 of file checkbox.cpp.


Member Data Documentation

int CheckBox::instances = 0 [static, private]

Definition at line 58 of file checkbox.h.

float CheckBox::mAlpha = 1.0 [static, private]

Definition at line 59 of file checkbox.h.

Image * CheckBox::checkBoxNormal [static, private]

Definition at line 60 of file checkbox.h.

Image * CheckBox::checkBoxChecked [static, private]

Definition at line 61 of file checkbox.h.

Image * CheckBox::checkBoxDisabled [static, private]

Definition at line 62 of file checkbox.h.

Definition at line 63 of file checkbox.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5