|
| enum | Result { YES,
NO,
CANCEL
} |
| |
|
|
| DialogueBox (sf::Vector2f const ¢re, sf::Vector2f const &size, std::string const &title, std::string const &message, std::string const &yesText="Yes", std::string const &noText="No", unsigned int titleCharSize=40u, unsigned int msgCharSize=20u) |
| |
|
void | open () |
| |
|
bool | isOpen () const |
| |
|
bool | resultProcessed () const |
| |
|
bool | handleEvent (sf::Event const &theEvent) |
| |
|
Result | getResult () |
| |
|
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
void | updateButtons (sf::Vector2i const &mousePosition) |
| |
|
void | updateResult () |
| |
|
|
Result | mResult |
| |
|
sf::Text | mTitle |
| |
|
sf::Text | mMessage |
| |
|
std::map< Result, std::unique_ptr< Button > > | mButtonMap |
| |
|
bool | mIsOpen |
| |
|
sf::RectangleShape | mBoxGraphic |
| |
|
bool | mResultProcessed |
| |
The documentation for this class was generated from the following file: