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.
color_box_styles.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 color_box_styles {
20  none = 0,
22  alpha_color = 0b1,
24  allow_full_open = 0b10,
26  any_color = 0b100,
28  full_open = 0b1000,
30  show_help = 0b10000,
32  solid_color_only = 0b100000,
33  };
34 
36  inline color_box_styles& operator +=(color_box_styles& lhs, color_box_styles rhs) {lhs = static_cast<color_box_styles>(static_cast<long long>(lhs) + static_cast<long long>(rhs)); return lhs;}
37  inline color_box_styles& operator -=(color_box_styles& lhs, color_box_styles rhs) {lhs = static_cast<color_box_styles>(static_cast<long long>(lhs) - static_cast<long long>(rhs)); return lhs;}
38  inline color_box_styles& operator &=(color_box_styles& lhs, color_box_styles rhs) {lhs = static_cast<color_box_styles>(static_cast<long long>(lhs) & static_cast<long long>(rhs)); return lhs;}
39  inline color_box_styles& operator |=(color_box_styles& lhs, color_box_styles rhs) {lhs = static_cast<color_box_styles>(static_cast<long long>(lhs) | static_cast<long long>(rhs)); return lhs;}
40  inline color_box_styles& operator ^=(color_box_styles& lhs, color_box_styles rhs) {lhs = static_cast<color_box_styles>(static_cast<long long>(lhs) ^ static_cast<long long>(rhs)); return lhs;}
41  inline color_box_styles operator +(color_box_styles lhs, color_box_styles rhs) {return static_cast<color_box_styles>(static_cast<long long>(lhs) + static_cast<long long>(rhs));}
42  inline color_box_styles operator -(color_box_styles lhs, color_box_styles rhs) {return static_cast<color_box_styles>(static_cast<long long>(lhs) - static_cast<long long>(rhs));}
43  inline color_box_styles operator ~(color_box_styles rhs) {return static_cast<color_box_styles>(~static_cast<long long>(rhs));}
44  inline color_box_styles operator &(color_box_styles lhs, color_box_styles rhs) {return static_cast<color_box_styles>(static_cast<long long>(lhs) & static_cast<long long>(rhs));}
45  inline color_box_styles operator |(color_box_styles lhs, color_box_styles rhs) {return static_cast<color_box_styles>(static_cast<long long>(lhs) | static_cast<long long>(rhs));}
46  inline color_box_styles operator ^(color_box_styles lhs, color_box_styles rhs) {return static_cast<color_box_styles>(static_cast<long long>(lhs) ^ static_cast<long long>(rhs));}
47  inline std::ostream& operator<<(std::ostream& os, color_box_styles value) {return os << to_string(value, {{color_box_styles::none, "none"}, {color_box_styles::alpha_color, "alpha_color"}, {color_box_styles::allow_full_open, "allow_full_open"}, {color_box_styles::any_color, "any_color"}, {color_box_styles::full_open, "full_open"}, {color_box_styles::show_help, "show_help"}, {color_box_styles::solid_color_only, "solid_color_only"}});}
48  inline std::wostream& operator<<(std::wostream& os, color_box_styles value) {return os << to_string(value, {{color_box_styles::none, L"none"}, {color_box_styles::alpha_color, L"alpha_color"}, {color_box_styles::allow_full_open, L"allow_full_open"}, {color_box_styles::any_color, L"any_color"}, {color_box_styles::full_open, L"full_open"}, {color_box_styles::show_help, L"show_help"}, {color_box_styles::solid_color_only, L"solid_color_only"}});}
50  }
51 }
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
color_box_styles
Specifies constants defining which color_box styles is used.
Definition: color_box_styles.h:18
@ none
The cause of the closure was not defined or could not be determined.
@ alpha_color
The color box shows alpha values and an opacity selector (slider).
@ allow_full_open
The user can use the dialog box to define custom colors.
@ solid_color_only
The dialog box will restrict users to selecting solid colors only.
@ full_open
The controls used to create custom colors are visible when the dialog box is opened.
@ any_color
The dialog box displays all available colors in the set of basic colors.
@ show_help
A Help button appears in the color dialog box.
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.