#include <Button.h>
Static Public Member Functions | |
| static Button * | create (const char *id, Theme::Style *style=NULL) |
Protected Member Functions | |
| Button () | |
| virtual | ~Button () |
| void | initialize (const char *typeName, Theme::Style *style, Properties *properties) |
| const char * | getTypeName () const |
| const unsigned int | getDataBinding () const |
| void | setDataBinding (unsigned int dataBinding) |
Static Protected Member Functions | |
| static Control * | create (Theme::Style *style, Properties *properties=NULL) |
Defines a button control.
| gameplay::Button::Button | ( | ) | [protected] |
Constructor.
| virtual gameplay::Button::~Button | ( | ) | [protected, virtual] |
Destructor.
| static Button* gameplay::Button::create | ( | const char * | id, |
| Theme::Style * | style = NULL |
||
| ) | [static] |
Creates a new Button.
| id | The button ID. |
| style | The button style (optional). |
Reimplemented from gameplay::Label.
Reimplemented in gameplay::RadioButton, and gameplay::CheckBox.
| static Control* gameplay::Button::create | ( | Theme::Style * | style, |
| Properties * | properties = NULL |
||
| ) | [static, protected] |
Create a button with a given style and properties.
| style | The style to apply to this button. |
| properties | A properties object containing a definition of the button (optional). |
Reimplemented from gameplay::Label.
Reimplemented in gameplay::RadioButton, and gameplay::CheckBox.
| const unsigned int gameplay::Button::getDataBinding | ( | ) | const [protected] |
Gets the data binding index for this control.
| const char* gameplay::Button::getTypeName | ( | ) | const [protected, virtual] |
Extends ScriptTarget::getTypeName() to return the type name of this class.
Child controls should override this function to return the correct type name.
Reimplemented from gameplay::Label.
Reimplemented in gameplay::RadioButton, and gameplay::CheckBox.
| void gameplay::Button::initialize | ( | const char * | typeName, |
| Theme::Style * | style, | ||
| Properties * | properties | ||
| ) | [protected, virtual] |
Reimplemented from gameplay::Label.
Reimplemented in gameplay::RadioButton, and gameplay::CheckBox.
| void gameplay::Button::setDataBinding | ( | unsigned int | dataBinding | ) | [protected] |
Sets the data binding provider for this control.
| dataBinding | The data binding index for control. |
1.7.6.1