9#include "dialog_intf.hpp"
10#include "../utility/utility.hpp"
11#include "../char_maps/module.hpp"
12#include "../macros.hpp"
14hi_export_module(hikogui.console.dialog : impl);
16namespace hi {
inline namespace v1 {
18hi_export
inline bool dialog(dialog_type type, std::string_view title, std::string_view text)
27 case dialog_type::yes_no:
32 case dialog_type::yes_no_cancel:
37 default: hi_no_default();
49 case IDYES:
return true;
50 case IDNO:
return false;
51 default: hi_no_default();
Rules for working with win32 headers.
constexpr std::wstring to_wstring(std::u32string_view rhs) noexcept
Conversion from UTF-32 to wide-string (UTF-16/32).
Definition to_string.hpp:156
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
Cancel error is caused by user pressing cancel.
Definition exception_intf.hpp:217