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.
appearance.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
18  enum class appearance {
20  normal = 0,
22  button = 1,
24  switch_button = 2,
25  };
26 
28  inline std::ostream& operator<<(std::ostream& os, appearance value) {return os << to_string(value, {{appearance::normal, "normal"}, {appearance::button, "button"}, {appearance::switch_button, "switch_button"}});}
29  inline std::wostream& operator<<(std::wostream& os, appearance value) {return os << to_string(value, {{appearance::normal, L"normal"}, {appearance::button, L"button"}, {appearance::switch_button, L"switch_button"}});}
31  }
32 }
Represents a Windows button control.
Definition: button.h:54
Represents a standard Windows switch button.
Definition: switch_button.h:19
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
appearance
Specifies the appearance of a control.
Definition: appearance.h:18
@ switch_button
The appearance of a switch button.
@ button
The appearance of a button.
@ normal
The default appearance defined by the control class.
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.