xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
check_state.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/ustring.h>
6
8namespace xtd {
10 namespace forms {
19 enum class check_state {
21 unchecked = 0,
23 checked = 1,
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}
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_state
Specifies the state of a control, such as a check box, that can be checked, unchecked,...
Definition: check_state.h:19
@ checked
The button has a checked or latched appearance. Use this appearance to show that a toggle button has ...
@ checked
The control is checked.
@ indeterminate
The control is indeterminate. An indeterminate control generally has a shaded appearance.
@ unchecked
The control is unchecked.
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.