|
|
| TextButton (int x, int y, tinyxml2::XMLElement *xmlDefinition) |
| |
|
| TextButton (int x, int y, tinyxml2::XMLElement *xmlDefinition, std::string const &text, unsigned int characterSize=20u) |
| |
|
void | setText (std::string const &text) |
| |
|
std::string const & | getText () const |
| |
|
| Button (int x, int y, const tinyxml2::XMLElement *xmlButtonDefinition) |
| |
|
virtual void | update (sf::Vector2i const &mousePos) |
| |
|
bool | checkClick () const |
| |
|
void | enable () |
| |
|
void | disable () |
| |
|
bool | containsMouse () const |
| |
|
std::string const & | getName () const |
| |
|
void | setPosition (sf::Vector2f const &position) |
| |
|
sf::Vector2f const & | getPosition () const |
| |
|
sf::Vector2f const & | getSize () const |
| |
|
sf::Vector2f const & | getScale () const |
| |
|
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
void | setState (State newState) |
| |
|
| enum | State { NORMAL,
HOVER,
DISABLED
} |
| |
|
enum gui::Button::State | mState |
| |
The documentation for this class was generated from the following file: