Button Class Reference
[Core GUI related classes (widgets)]

#include <button.h>

List of all members.


Detailed Description

Button widget.

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

Constructor & Destructor Documentation

Button::Button (  ) 

Default constructor.

Definition at line 64 of file button.cpp.

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 (  ) 

Destructor.

Definition at line 114 of file button.cpp.


Member Function Documentation

void Button::draw ( gcn::Graphics *  graphics  ) 

Draws the button.

Definition at line 127 of file button.cpp.

void Button::init (  )  [private]

Definition at line 80 of file button.cpp.


Member Data Documentation

ImageRect Button::button [static, private]

Button state graphics.

Definition at line 62 of file button.h.

int Button::mInstances = 0 [static, private]

Number of button instances.

Definition at line 63 of file button.h.

float Button::mAlpha = 1.0 [static, private]

Definition at line 64 of file button.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5