#include <checkbox.h>
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 Image * | checkBoxNormal |
static Image * | checkBoxChecked |
static Image * | checkBoxDisabled |
static Image * | checkBoxDisabledChecked |
CheckBox::CheckBox | ( | const std::string & | caption, | |
bool | selected = false | |||
) |
CheckBox::~CheckBox | ( | ) |
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 | ) |
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.
Image * CheckBox::checkBoxDisabledChecked [static, private] |
Definition at line 63 of file checkbox.h.