7#include "../macros.hpp"
12hi_export_module(hikogui.console.dialogue : intf);
14namespace hi {
inline namespace v1 {
16hi_export
enum class dialog_type { ok, yes_no, yes_no_cancel };
25hi_export
bool dialog(dialog_type type, std::string_view title, std::string_view text);
27hi_export
inline void dialog_ok(std::string_view title, std::string_view message)
noexcept
29 dialog(dialog_type::ok, title, message);
32hi_export [[
nodiscard]]
inline bool dialog_yes_no(std::string_view title, std::string_view message)
noexcept
34 return dialog(dialog_type::yes_no, title, message);
37hi_export [[
nodiscard]]
inline bool dialog_yes_no_cancel(std::string_view title, std::string_view message)
39 return dialog(dialog_type::yes_no_cancel, title, message);
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
hi_export bool dialog(dialog_type type, std::string_view title, std::string_view text)
Display a modal dialog.
Definition dialog_win32_impl.hpp:18
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377