Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CheckBox Class Reference

Check box widget. More...

#include <checkbox.h>

Inheritance diagram for CheckBox:

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
 

Detailed Description

Check box widget.

Same as the Guichan check box but with custom look.

Definition at line 31 of file checkbox.h.

Constructor & Destructor Documentation

◆ CheckBox()

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

Definition at line 29 of file checkbox.cpp.

Member Function Documentation

◆ draw()

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

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

Definition at line 37 of file checkbox.cpp.

◆ drawBox()

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

Overridden because box is drawn in CheckBox::draw.

Definition at line 44 of file checkbox.h.

◆ mouseEntered()

void CheckBox::mouseEntered ( gcn::MouseEvent &  event)
override

Called when the mouse enteres the widget area.

Definition at line 61 of file checkbox.cpp.

◆ mouseExited()

void CheckBox::mouseExited ( gcn::MouseEvent &  event)
override

Called when the mouse leaves the widget area.

Definition at line 66 of file checkbox.cpp.

Member Data Documentation

◆ mHasMouse

bool CheckBox::mHasMouse = false
private

Definition at line 57 of file checkbox.h.


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