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

Guichan based RadioButton with custom look. More...

#include <radiobutton.h>

Inheritance diagram for RadioButton:

Public Member Functions

 RadioButton (const std::string &caption, const std::string &group, bool marked=false)
 
void draw (gcn::Graphics *graphics) override
 Implementation of the draw method.
 
void drawBox (gcn::Graphics *graphics) override
 Overridden because box is drawn in RadioButton::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

Guichan based RadioButton with custom look.

Definition at line 29 of file radiobutton.h.

Constructor & Destructor Documentation

◆ RadioButton()

RadioButton::RadioButton ( const std::string &  caption,
const std::string &  group,
bool  marked = false 
)

Definition at line 29 of file radiobutton.cpp.

Member Function Documentation

◆ draw()

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

Implementation of the draw method.

Definition at line 39 of file radiobutton.cpp.

◆ drawBox()

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

Overridden because box is drawn in RadioButton::draw.

Definition at line 44 of file radiobutton.h.

◆ mouseEntered()

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

Called when the mouse enteres the widget area.

Definition at line 63 of file radiobutton.cpp.

◆ mouseExited()

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

Called when the mouse leaves the widget area.

Definition at line 68 of file radiobutton.cpp.

Member Data Documentation

◆ mHasMouse

bool RadioButton::mHasMouse = false
private

Definition at line 57 of file radiobutton.h.


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