#include <Button.h>
Inherits Object.
Inheritance diagram for Button:
Public Member Functions | |
Button (Interface *p_interface) | |
Standard constructor. | |
virtual | ~Button () |
Standard destructor. | |
int | render () |
Renders the Interface. | |
virtual Button * | getButton () |
Returns a pointer to itself. | |
Public Attributes | |
std::string | label |
Holds the label of the button. | |
Vector3d | pos |
Holds the position on the interface. | |
Interface * | m_interface |
Holds the instance of the interface. | |
int | val |
Holds the bonus value to apply. |
Definition at line 28 of file Button.h.
Button::Button | ( | Interface * | p_interface | ) |
Button::~Button | ( | ) | [virtual] |
int Button::render | ( | ) | [virtual] |
Renders the Interface.
Reimplemented from Texture.
Definition at line 34 of file Button.cpp.
References pos, and Texture::render().
Here is the call graph for this function:
Button * Button::getButton | ( | ) | [virtual] |
Returns a pointer to itself.
Reimplemented from Texture.
Definition at line 43 of file Button.cpp.
std::string Button::label |
Holds the label of the button.
Definition at line 50 of file Button.h.
Referenced by Interface::load(), and FunctionHandler::select().
Holds the position on the interface.
Definition at line 55 of file Button.h.
Referenced by Interface::load(), and render().
int Button::val |
Holds the bonus value to apply.
Definition at line 65 of file Button.h.
Referenced by Button(), Interface::load(), and FunctionHandler::selectBonus().