![]() |
FYP
1.0.0
Final Year Project -- Alexander Meuer
|
Clickable sprite. More...
#include <Button.hpp>


Protected Types | |
| enum | State { NORMAL, HOVER, DISABLED } |
Protected Member Functions | |
| void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| void | setState (State newState) |
Protected Attributes | |
| enum gui::Button::State | mState |
Private Attributes | |
| sf::RectangleShape | mGraphic |
| sf::Sound | mOnHoverSound |
| sf::IntRect | mNormalSrcRect |
| sf::IntRect | mHoverSrcRect |
| sf::IntRect | mDisabledSrcRect |
| std::string | mName |
| bool | mMouseOver |
| True if the mouse is within bounds. | |
Clickable sprite.