|
Mana
|
Check box widget. More...
#include <checkbox.h>
Public Member Functions | |
| CheckBox (const std::string &caption, bool selected=false) | |
| void | draw (gcn::Graphics *graphics) override |
| Draws the caption, then calls drawBox to draw the check box. | |
| void | drawBox (gcn::Graphics *graphics) override |
| Overridden because box is drawn in CheckBox::draw. | |
| void | mouseEntered (gcn::MouseEvent &event) override |
| Called when the mouse enteres the widget area. | |
| void | mouseExited (gcn::MouseEvent &event) override |
| Called when the mouse leaves the widget area. | |
Private Attributes | |
| bool | mHasMouse = false |
Check box widget.
Same as the Guichan check box but with custom look.
Definition at line 31 of file checkbox.h.
| CheckBox::CheckBox | ( | const std::string & | caption, |
| bool | selected = false |
||
| ) |
Definition at line 29 of file checkbox.cpp.
|
override |
Draws the caption, then calls drawBox to draw the check box.
Definition at line 37 of file checkbox.cpp.
|
inlineoverride |
Overridden because box is drawn in CheckBox::draw.
Definition at line 44 of file checkbox.h.
|
override |
Called when the mouse enteres the widget area.
Definition at line 61 of file checkbox.cpp.
|
override |
Called when the mouse leaves the widget area.
Definition at line 66 of file checkbox.cpp.
|
private |
Definition at line 57 of file checkbox.h.