xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
check_state.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
19  enum class check_state {
21  unchecked = 0,
23  checked = 1,
25  indeterminate = 2
26  };
27 
29  inline std::ostream& operator<<(std::ostream& os, check_state value) {return os << to_string(value, {{check_state::unchecked, "unchecked"}, {check_state::checked, "checked"}, {check_state::indeterminate, "indeterminate"}});}
30  inline std::wostream& operator<<(std::wostream& os, check_state value) {return os << to_string(value, {{check_state::unchecked, L"unchecked"}, {check_state::checked, L"checked"}, {check_state::indeterminate, L"indeterminate"}});}
32  }
33 }
check_state
Specifies the state of a control, such as a check box, that can be checked, unchecked, or set to an indeterminate state.
Definition: check_state.h:19
The control is unchecked.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The control is checked.
Contains xtd::ustring class.
The control is indeterminate. An indeterminate control generally has a shaded appearance.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
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