#include <button.h>
Same as the Guichan button but with custom look.
Definition at line 34 of file button.h.
Public Member Functions | |
Button () | |
Default constructor. | |
Button (const std::string &caption, const std::string &actionEventId, gcn::ActionListener *listener) | |
Constructor, sets the caption of the button to the given string and adds the given action listener. | |
~Button () | |
Destructor. | |
void | draw (gcn::Graphics *graphics) |
Draws the button. | |
Private Member Functions | |
void | init () |
Static Private Attributes | |
static ImageRect | button [4] |
Button state graphics. | |
static int | mInstances = 0 |
Number of button instances. | |
static float | mAlpha = 1.0 |
Button::Button | ( | ) |
Button::Button | ( | const std::string & | caption, | |
const std::string & | actionEventId, | |||
gcn::ActionListener * | listener | |||
) |
Constructor, sets the caption of the button to the given string and adds the given action listener.
Definition at line 69 of file button.cpp.
Button::~Button | ( | ) |
void Button::draw | ( | gcn::Graphics * | graphics | ) |
void Button::init | ( | ) | [private] |
Definition at line 80 of file button.cpp.
ImageRect Button::button [static, private] |
int Button::mInstances = 0 [static, private] |
float Button::mAlpha = 1.0 [static, private] |