|
Hymn to Beauty
C++ 3D Engine
|
A window that asks the user if they want to save before quitting. More...
#include <SavePromptWindow.hpp>
Public Member Functions | |
| void | Show () |
| Show the window and let the user decide if they want to save. More... | |
| bool | IsVisible () const |
| Get whether the window is visible. More... | |
| void | SetVisible (bool visible) |
| Set whether the window should be visible. More... | |
| void | SetDecision (int option) |
| Sets decision to true or false. More... | |
| int | GetDecision () const |
| Fetches what the player picked. More... | |
| void | ResetDecision () |
| Resets the decision to -1. More... | |
| void | SetTitle (const std::string &newTitle) |
| Set the title of the window. More... | |
A window that asks the user if they want to save before quitting.
| int SavePromptWindow::GetDecision | ( | ) | const |
Fetches what the player picked.
| bool SavePromptWindow::IsVisible | ( | ) | const |
Get whether the window is visible.
| void SavePromptWindow::ResetDecision | ( | ) |
Resets the decision to -1.
| void GUI::SavePromptWindow::SetDecision | ( | int | option | ) |
Sets decision to true or false.
| option | If the decision should be 0: Save, 1: Don't save, *2: cancel. |
| void SavePromptWindow::SetTitle | ( | const std::string & | newTitle | ) |
Set the title of the window.
| newTitle | The new title of the window. |
| void SavePromptWindow::SetVisible | ( | bool | visible | ) |
Set whether the window should be visible.
| visible | Whether the window should be visible. |
| void SavePromptWindow::Show | ( | ) |
Show the window and let the user decide if they want to save.