xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
push_button_state.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/ustring.h>
6
8namespace xtd {
10 namespace forms {
12 namespace visual_styles {
20 enum class push_button_state {
22 normal = 1,
24 hot,
26 pressed,
28 checked,
33 };
34
36 inline std::ostream& operator<<(std::ostream& os, push_button_state value) {return os << to_string(value, {{push_button_state::normal, "normal"}, {push_button_state::hot, "hot"}, {push_button_state::pressed, "pressed"}, {push_button_state::disabled, "disabled"}, {push_button_state::default_state, "default_state"}});}
37 inline std::wostream& operator<<(std::wostream& os, push_button_state value) {return os << to_string(value, {{push_button_state::normal, L"normal"}, {push_button_state::hot, L"hot"}, {push_button_state::pressed, L"pressed"}, {push_button_state::disabled, L"disabled"}, {push_button_state::default_state, L"default_state"}});}
39 }
40 }
41}
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
push_button_state
Specifies the visual state of a button that is drawn with visual styles.
Definition push_button_state.h:20
@ default_state
The button has the default appearance.
@ normal
The button has the normal appearance.
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.