xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
message_dialog_icon.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
18  enum class message_dialog_icon {
20  none = 0,
22  hand = 0x00000010L,
24  stop = 0x00000010L,
26  error = 0x00000010L,
28  question = 0x00000020L,
30  exclamation = 0x00000030L,
32  warning = 0x00000030L,
34  asterisk = 0x00000040L,
36  information = 0x00000040L,
37  };
38 
40  inline std::ostream& operator<<(std::ostream& os, message_dialog_icon value) {return os << to_string(value, {{message_dialog_icon::none, "none"}, {message_dialog_icon::hand, "hand"}, {message_dialog_icon::stop, "stop"}, {message_dialog_icon::error, "error"}, {message_dialog_icon::question, "question"}, {message_dialog_icon::exclamation, "exclamation"}, {message_dialog_icon::warning, "warning"}, {message_dialog_icon::asterisk, "asterisk"}, {message_dialog_icon::information, "information"}});}
41  inline std::wostream& operator<<(std::wostream& os, message_dialog_icon value) {return os << to_string(value, {{message_dialog_icon::none, L"none"}, {message_dialog_icon::hand, L"hand"}, {message_dialog_icon::stop, L"stop"}, {message_dialog_icon::error, L"error"}, {message_dialog_icon::question, L"question"}, {message_dialog_icon::exclamation, L"exclamation"}, {message_dialog_icon::warning, L"warning"}, {message_dialog_icon::asterisk, L"asterisk"}, {message_dialog_icon::information, L"information"}});}
43  }
44 }
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
message_dialog_icon
Specifies constants defining which information to display.
Definition: message_dialog_icon.h:18
@ exclamation
The message box contains a symbol consisting of an exclamation point in a triangle with a yellow back...
@ none
The message box contain no symbols.
@ asterisk
The message box contains a symbol consisting of a lowercase letter i in a circle.
@ question
The message box contains a symbol consisting of a question mark in a circle. The question-mark messag...
@ hand
The message box contains a symbol consisting of a white X in a circle with a red background.
@ warning
The message box contains a symbol consisting of an exclamation point in a triangle with a yellow back...
@ information
The message box contains a symbol consisting of a lowercase letter i in a circle.
@ error
The message box contains a symbol consisting of white X in a circle with a red background.
@ stop
The message box contains a symbol consisting of white X in a circle with a red background.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.