Cluedo Solver
v1.0
Cluedo game solver making deductions.
Loading...
Searching...
No Matches
ErrorModal.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
7
8
namespace
Cluedo {
9
10
namespace
UI {
11
13
class
ErrorModal
{
14
public
:
16
explicit
ErrorModal
() =
default
;
17
19
void
show
();
21
void
set_error_message
(std::string_view error_message) { m_error_message = error_message; }
22
23
private
:
24
std::string m_error_message;
25
};
26
27
}
28
29
}
Cluedo::UI::ErrorModal::set_error_message
void set_error_message(std::string_view error_message)
Sets the error message to be shown by the modal.
Definition
ErrorModal.hpp:21
Cluedo::UI::ErrorModal::ErrorModal
ErrorModal()=default
Construct the modal.
Cluedo::UI::ErrorModal::show
void show()
Shows the modal.
Definition
ErrorModal.cpp:12
src
ui
ErrorModal.hpp
Generated by
1.13.2