12 namespace visual_styles {
48 inline std::ostream& operator<<(std::ostream& os,
toggle_button_state value) {
return os <<
to_string(value, {{
toggle_button_state::unchecked_normal,
"unchecked_normal"}, {
toggle_button_state::unchecked_hot,
"unchecked_hot"}, {
toggle_button_state::unchecked_pressed,
"unchecked_pressed"}, {
toggle_button_state::unchecked_disabled,
"unchecked_disabled"}, {
toggle_button_state::checked_normal,
"checked_normal"}, {
toggle_button_state::checked_hot,
"checked_hot"}, {
toggle_button_state::checked_pressed,
"checked_pressed"}, {
toggle_button_state::checked_disabled,
"checked_disabled"}, {
toggle_button_state::mixed_normal,
"mixed_normal"}, {
toggle_button_state::mixed_hot,
"mixed_hot"}, {
toggle_button_state::mixed_pressed,
"mixed_pressed"}, {
toggle_button_state::mixed_disabled,
"mixed_disabled"}});}
49 inline std::wostream& operator<<(std::wostream& os,
toggle_button_state value) {
return os <<
to_string(value, {{
toggle_button_state::unchecked_normal, L
"unchecked_normal"}, {
toggle_button_state::unchecked_hot, L
"unchecked_hot"}, {
toggle_button_state::unchecked_pressed, L
"unchecked_pressed"}, {
toggle_button_state::unchecked_disabled, L
"unchecked_disabled"}, {
toggle_button_state::checked_normal, L
"checked_normal"}, {
toggle_button_state::checked_hot, L
"checked_hot"}, {
toggle_button_state::checked_pressed, L
"checked_pressed"}, {
toggle_button_state::checked_disabled, L
"checked_disabled"}, {
toggle_button_state::mixed_normal, L
"mixed_normal"}, {
toggle_button_state::mixed_hot, L
"mixed_hot"}, {
toggle_button_state::mixed_pressed, L
"mixed_pressed"}, {
toggle_button_state::mixed_disabled, L
"mixed_disabled"}});}
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.