xtd 0.2.0
Loading...
Searching...
No Matches
check_state.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace forms {
21 enum class check_state {
23 unchecked = 0,
25 checked = 1,
28 };
29 }
30}
31
33template<> struct xtd::enum_register<xtd::forms::check_state> {
34 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::check_state> {{xtd::forms::check_state::unchecked, "unchecked"}, {xtd::forms::check_state::checked, "checked"}, {xtd::forms::check_state::indeterminate, "indeterminate"}};}
35};
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:19
check_state
Specifies the state of a control, such as a check box, that can be checked, unchecked,...
Definition check_state.h:21
@ 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 xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:36