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.
check_box_state.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
12  namespace visual_styles {
20  enum class check_box_state {
22  unchecked_normal = 1,
40  mixed_hot,
45  };
46 
48  inline std::ostream& operator<<(std::ostream& os, check_box_state value) {return os << to_string(value, {{check_box_state::unchecked_normal, "unchecked_normal"}, {check_box_state::unchecked_hot, "unchecked_hot"}, {check_box_state::unchecked_pressed, "unchecked_pressed"}, {check_box_state::unchecked_disabled, "unchecked_disabled"}, {check_box_state::checked_normal, "checked_normal"}, {check_box_state::checked_hot, "checked_hot"}, {check_box_state::checked_pressed, "checked_pressed"}, {check_box_state::checked_disabled, "checked_disabled"}, {check_box_state::mixed_normal, "mixed_normal"}, {check_box_state::mixed_hot, "mixed_hot"}, {check_box_state::mixed_pressed, "mixed_pressed"}, {check_box_state::mixed_disabled, "mixed_disabled"}});}
49  inline std::wostream& operator<<(std::wostream& os, check_box_state value) {return os << to_string(value, {{check_box_state::unchecked_normal, L"unchecked_normal"}, {check_box_state::unchecked_hot, L"unchecked_hot"}, {check_box_state::unchecked_pressed, L"unchecked_pressed"}, {check_box_state::unchecked_disabled, L"unchecked_disabled"}, {check_box_state::checked_normal, L"checked_normal"}, {check_box_state::checked_hot, L"checked_hot"}, {check_box_state::checked_pressed, L"checked_pressed"}, {check_box_state::checked_disabled, L"checked_disabled"}, {check_box_state::mixed_normal, L"mixed_normal"}, {check_box_state::mixed_hot, L"mixed_hot"}, {check_box_state::mixed_pressed, L"mixed_pressed"}, {check_box_state::mixed_disabled, L"mixed_disabled"}});}
51  }
52  }
53 }
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
check_box_state
Specifies the visual state of a check box that is drawn with visual styles.
Definition: check_box_state.h:20
@ mixed_normal
The check box is three-state.
@ mixed_pressed
The check box is three-state and pressed.
@ unchecked_normal
The check box is unchecked.
@ checked_normal
The check box is checked.
@ checked_disabled
The check box is checked and disabled.
@ unchecked_pressed
The check box is unchecked and pressed.
@ mixed_hot
The check box is three-state and hot.
@ checked_hot
The check box is checked and hot.
@ unchecked_hot
The check box is unchecked and hot.
@ unchecked_disabled
The check box is unchecked and disabled.
@ checked_pressed
The check box is checked and pressed.
@ mixed_disabled
The check box is three-state and disabled.
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.