xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
known_color.h
Go to the documentation of this file.
1 #pragma once
5 #include "xtd/ustring.h"
6 
8 namespace xtd {
10  namespace drawing {
18  enum class known_color {
20  active_border = 1,
28  control,
40  desktop,
42  gray_text,
44  highlight,
48  hot_track,
56  info,
58  info_text,
60  menu,
62  menu_text,
64  scroll_bar,
66  window,
74  alice_blue,
78  aqua,
80  aquamarine,
82  azure,
84  beige,
86  bisque,
88  black,
92  blue,
96  brown,
98  burly_wood,
100  cadet_blue,
102  chartreuse,
104  chocolate,
106  coral,
110  cornsilk,
112  crimson,
114  cyan,
116  dark_blue,
118  dark_cyan,
122  dark_gray,
124  dark_green,
126  dark_khaki,
128  dark_magenta,
132  dark_orange,
134  dark_orchid,
136  dark_red,
138  dark_salmon,
148  dark_violet,
150  deep_pink,
154  dim_gray,
156  dodger_blue,
158  firebrick,
160  floral_white,
162  forest_green,
164  fuchsia,
166  gainsboro,
168  ghost_white,
170  gold,
172  goldenrod,
174  gray,
176  green,
178  green_yellow,
180  honeydew,
182  hot_pink,
184  indian_red,
186  indigo,
188  ivory,
190  khaki,
192  lavender,
196  lawn_green,
200  light_blue,
202  light_coral,
204  light_cyan,
208  light_gray,
210  light_green,
212  light_pink,
214  light_salmon,
224  light_yellow,
226  lime,
228  lime_green,
230  linen,
232  magenta,
234  maroon,
238  medium_blue,
256  mint_cream,
258  misty_rose,
260  moccasin,
262  navajo_white,
264  navy,
266  old_lace,
268  olive,
270  olive_drab,
272  orange,
274  orange_red,
276  orchid,
280  pale_green,
286  papaya_whip,
288  peach_puff,
290  peru,
292  pink,
294  plum,
296  powder_blue,
298  purple,
302  red,
304  rosy_brown,
306  royal_blue,
308  saddle_brown,
310  salmon,
312  sandy_brown,
314  sea_green,
316  sea_shell,
318  sienna,
320  silver,
322  sky_blue,
324  slate_blue,
326  slate_gray,
328  snow,
330  spring_green,
332  steel_blue,
334  tan,
336  teal,
338  thistle,
340  tomato,
342  turquoise,
344  violet,
346  wheat,
348  white,
350  white_smoke,
352  yellow,
354  yellow_green,
356  button_face,
366  menu_bar,
370  accent,
372  accent_text,
374  text_box,
377  };
378 
380  inline std::ostream& operator<<(std::ostream& os, known_color value) {return os << to_string(value, {{known_color::active_border, "active_border"}, {known_color::active_caption, "active_caption"}, {known_color::active_caption_text, "active_caption_text"}, {known_color::app_workspace, "app_workspace"}, {known_color::control, "control"}, {known_color::control_dark, "control_dark"}, {known_color::control_dark_dark, "control_dark_dark"}, {known_color::control_light, "control_light"}, {known_color::control_light_light, "control_light_light"}, {known_color::control_text, "control_text"}, {known_color::desktop, "desktop"}, {known_color::gray_text, "gray_text"}, {known_color::highlight, "highlight"}, {known_color::highlight_text, "highlight_text"}, {known_color::hot_track, "hot_track"}, {known_color::inactive_border, "inactive_border"}, {known_color::inactive_caption, "inactive_caption"}, {known_color::inactive_caption_text, "inactive_caption_text"}, {known_color::info, "info"}, {known_color::info_text, "info_text"}, {known_color::menu, "menu"}, {known_color::menu_text, "menu_text"}, {known_color::scroll_bar, "scroll_bar"}, {known_color::window, "window"}, {known_color::window_frame, "window_frame"}, {known_color::window_text, "window_text"}, {known_color::transparent, "transparent"}, {known_color::alice_blue, "alice_blue"}, {known_color::antique_white, "antique_white"}, {known_color::aqua, "aqua"}, {known_color::aquamarine, "aquamarine"}, {known_color::azure, "azure"}, {known_color::beige, "beige"}, {known_color::bisque, "bisque"}, {known_color::black, "black"}, {known_color::blanched_almond, "blanched_almond"}, {known_color::blue, "blue"}, {known_color::blue_violet, "blue_violet"}, {known_color::brown, "brown"}, {known_color::burly_wood, "burly_wood"}, {known_color::cadet_blue, "cadet_blue"}, {known_color::chartreuse, "chartreuse"}, {known_color::chocolate, "chocolate"}, {known_color::coral, "coral"}, {known_color::cornflower_blue, "cornflower_blue"}, {known_color::cornsilk, "cornsilk"}, {known_color::crimson, "crimson"}, {known_color::cyan, "cyan"}, {known_color::dark_blue, "dark_blue"}, {known_color::dark_cyan, "dark_cyan"}, {known_color::dark_goldenrod, "dark_goldenrod"}, {known_color::dark_gray, "dark_gray"}, {known_color::dark_green, "dark_green"}, {known_color::dark_khaki, "dark_khaki"}, {known_color::dark_magenta, "dark_magenta"}, {known_color::dark_olive_green, "dark_olive_green"}, {known_color::dark_orange, "dark_orange"}, {known_color::dark_orchid, "dark_orchid"}, {known_color::dark_red, "dark_red"}, {known_color::dark_salmon, "dark_salmon"}, {known_color::dark_sea_green, "dark_sea_green"}, {known_color::dark_slate_blue, "dark_slate_blue"}, {known_color::dark_slate_gray, "dark_slate_gray"}, {known_color::dark_turquoise, "dark_turquoise"}, {known_color::dark_violet, "dark_violet"}, {known_color::deep_pink, "deep_pink"}, {known_color::deep_sky_blue, "deep_sky_blue"}, {known_color::dim_gray, "dim_gray"}, {known_color::dodger_blue, "dodger_blue"}, {known_color::firebrick, "firebrick"}, {known_color::floral_white, "floral_white"}, {known_color::forest_green, "forest_green"}, {known_color::fuchsia, "fuchsia"}, {known_color::gainsboro, "gainsboro"}, {known_color::ghost_white, "ghost_white"}, {known_color::gold, "gold"}, {known_color::goldenrod, "goldenrod"}, {known_color::gray, "gray"}, {known_color::green, "green"}, {known_color::green_yellow, "green_yellow"}, {known_color::honeydew, "honeydew"}, {known_color::hot_pink, "hot_pink"}, {known_color::indian_red, "indian_red"}, {known_color::indigo, "indigo"}, {known_color::ivory, "ivory"}, {known_color::khaki, "khaki"}, {known_color::lavender, "lavender"}, {known_color::lavender_blush, "lavender_blush"}, {known_color::lawn_green, "lawn_green"}, {known_color::lemon_chiffon, "lemon_chiffon"}, {known_color::light_blue, "light_blue"}, {known_color::light_coral, "light_coral"}, {known_color::light_cyan, "light_cyan"}, {known_color::light_goldenrod_yellow, "light_goldenrod_yellow"}, {known_color::light_gray, "light_gray"}, {known_color::light_green, "light_green"}, {known_color::light_pink, "light_pink"}, {known_color::light_salmon, "light_salmon"}, {known_color::light_sea_green, "light_sea_green"}, {known_color::light_sky_blue, "light_sky_blue"}, {known_color::light_slate_gray, "light_slate_gray"}, {known_color::light_steel_blue, "light_steel_blue"}, {known_color::light_yellow, "light_yellow"}, {known_color::lime, "lime"}, {known_color::lime_green, "lime_green"}, {known_color::linen, "linen"}, {known_color::magenta, "magenta"}, {known_color::maroon, "maroon"}, {known_color::medium_aquamarine, "medium_aquamarine"}, {known_color::medium_blue, "medium_blue"}, {known_color::medium_orchid, "medium_orchid"}, {known_color::medium_purple, "medium_purple"}, {known_color::medium_sea_green, "medium_sea_green"}, {known_color::medium_slate_blue, "medium_slate_blue"}, {known_color::medium_spring_green, "medium_spring_green"}, {known_color::medium_turquoise, "medium_turquoise"}, {known_color::medium_violet_red, "medium_violet_red"}, {known_color::midnight_blue, "midnight_blue"}, {known_color::mint_cream, "mint_cream"}, {known_color::misty_rose, "misty_rose"}, {known_color::moccasin, "moccasin"}, {known_color::navajo_white, "navajo_white"}, {known_color::navy, "navy"}, {known_color::old_lace, "old_lace"}, {known_color::olive, "olive"}, {known_color::olive_drab, "olive_drab"}, {known_color::orange, "orange"}, {known_color::orange_red, "orange_red"}, {known_color::orchid, "orchid"}, {known_color::pale_goldenrod, "pale_goldenrod"}, {known_color::pale_green, "pale_green"}, {known_color::pale_turquoise, "pale_turquoise"}, {known_color::pale_violet_red, "pale_violet_red"}, {known_color::papaya_whip, "papaya_whip"}, {known_color::peach_puff, "peach_puff"}, {known_color::peru, "peru"}, {known_color::pink, "pink"}, {known_color::plum, "plum"}, {known_color::powder_blue, "powder_blue"}, {known_color::purple, "purple"}, {known_color::rebecca_purple, "rebecca_purple"}, {known_color::red, "red"}, {known_color::rosy_brown, "rosy_brown"}, {known_color::royal_blue, "royal_blue"}, {known_color::saddle_brown, "saddle_brown"}, {known_color::salmon, "salmon"}, {known_color::sandy_brown, "sandy_brown"}, {known_color::sea_green, "sea_green"}, {known_color::sea_shell, "sea_shell"}, {known_color::sienna, "sienna"}, {known_color::silver, "silver"}, {known_color::sky_blue, "sky_blue"}, {known_color::slate_blue, "slate_blue"}, {known_color::slate_gray, "slate_gray"}, {known_color::snow, "snow"}, {known_color::spring_green, "spring_green"}, {known_color::steel_blue, "steel_blue"}, {known_color::tan, "tan"}, {known_color::teal, "teal"}, {known_color::thistle, "thistle"}, {known_color::tomato, "tomato"}, {known_color::turquoise, "turquoise"}, {known_color::violet, "violet"}, {known_color::wheat, "wheat"}, {known_color::white, "white"}, {known_color::white_smoke, "white_smoke"}, {known_color::yellow, "yellow"}, {known_color::yellow_green, "yellow_green"}, {known_color::button_face, "button_face"}, {known_color::button_highlight, "button_highlight"}, {known_color::button_shadow, "button_shadow"}, {known_color::gradient_active_caption, "gradient_active_caption"}, {known_color::gradient_inactive_caption, "gradient_inactive_caption"}, {known_color::menu_bar, "menu_bar"}, {known_color::menu_highlight, "menu_highlight"}, {known_color::accent, "accent"}, {known_color::accent_text, "accent_text"}, {known_color::text_box, "text_box"}, {known_color::text_box_text, "text_box_text"}});}
381  inline std::wostream& operator<<(std::wostream& os, known_color value) {return os << to_string(value, {{known_color::active_border, L"active_border"}, {known_color::active_caption, L"active_caption"}, {known_color::active_caption_text, L"active_caption_text"}, {known_color::app_workspace, L"app_workspace"}, {known_color::control, L"control"}, {known_color::control_dark, L"control_dark"}, {known_color::control_dark_dark, L"control_dark_dark"}, {known_color::control_light, L"control_light"}, {known_color::control_light_light, L"control_light_light"}, {known_color::control_text, L"control_text"}, {known_color::desktop, L"desktop"}, {known_color::gray_text, L"gray_text"}, {known_color::highlight, L"highlight"}, {known_color::highlight_text, L"highlight_text"}, {known_color::hot_track, L"hot_track"}, {known_color::inactive_border, L"inactive_border"}, {known_color::inactive_caption, L"inactive_caption"}, {known_color::inactive_caption_text, L"inactive_caption_text"}, {known_color::info, L"info"}, {known_color::info_text, L"info_text"}, {known_color::menu, L"menu"}, {known_color::menu_text, L"menu_text"}, {known_color::scroll_bar, L"scroll_bar"}, {known_color::window, L"window"}, {known_color::window_frame, L"window_frame"}, {known_color::window_text, L"window_text"}, {known_color::transparent, L"transparent"}, {known_color::alice_blue, L"alice_blue"}, {known_color::antique_white, L"antique_white"}, {known_color::aqua, L"aqua"}, {known_color::aquamarine, L"aquamarine"}, {known_color::azure, L"azure"}, {known_color::beige, L"beige"}, {known_color::bisque, L"bisque"}, {known_color::black, L"black"}, {known_color::blanched_almond, L"blanched_almond"}, {known_color::blue, L"blue"}, {known_color::blue_violet, L"blue_violet"}, {known_color::brown, L"brown"}, {known_color::burly_wood, L"burly_wood"}, {known_color::cadet_blue, L"cadet_blue"}, {known_color::chartreuse, L"chartreuse"}, {known_color::chocolate, L"chocolate"}, {known_color::coral, L"coral"}, {known_color::cornflower_blue, L"cornflower_blue"}, {known_color::cornsilk, L"cornsilk"}, {known_color::crimson, L"crimson"}, {known_color::cyan, L"cyan"}, {known_color::dark_blue, L"dark_blue"}, {known_color::dark_cyan, L"dark_cyan"}, {known_color::dark_goldenrod, L"dark_goldenrod"}, {known_color::dark_gray, L"dark_gray"}, {known_color::dark_green, L"dark_green"}, {known_color::dark_khaki, L"dark_khaki"}, {known_color::dark_magenta, L"dark_magenta"}, {known_color::dark_olive_green, L"dark_oliveGreen"}, {known_color::dark_orange, L"dark_orange"}, {known_color::dark_orchid, L"dark_orchid"}, {known_color::dark_red, L"dark_red"}, {known_color::dark_salmon, L"dark_salmon"}, {known_color::dark_sea_green, L"dark_sea_green"}, {known_color::dark_slate_blue, L"dark_slate_blue"}, {known_color::dark_slate_gray, L"dark_slate_gray"}, {known_color::dark_turquoise, L"dark_turquoise"}, {known_color::dark_violet, L"dark_violet"}, {known_color::deep_pink, L"deep_pink"}, {known_color::deep_sky_blue, L"deep_sky_blue"}, {known_color::dim_gray, L"dim_gray"}, {known_color::dodger_blue, L"dodger_blue"}, {known_color::firebrick, L"firebrick"}, {known_color::floral_white, L"floral_white"}, {known_color::forest_green, L"forest_green"}, {known_color::fuchsia, L"fuchsia"}, {known_color::gainsboro, L"gainsboro"}, {known_color::ghost_white, L"ghost_white"}, {known_color::gold, L"gold"}, {known_color::goldenrod, L"goldenrod"}, {known_color::gray, L"gray"}, {known_color::green, L"green"}, {known_color::green_yellow, L"green_yellow"}, {known_color::honeydew, L"honeydew"}, {known_color::hot_pink, L"hot_pink"}, {known_color::indian_red, L"indian_red"}, {known_color::indigo, L"indigo"}, {known_color::ivory, L"ivory"}, {known_color::khaki, L"khaki"}, {known_color::lavender, L"lavender"}, {known_color::lavender_blush, L"lavender_blush"}, {known_color::lawn_green, L"lawn_green"}, {known_color::lemon_chiffon, L"lemon_chiffon"}, {known_color::light_blue, L"light_blue"}, {known_color::light_coral, L"light_coral"}, {known_color::light_cyan, L"light_cyan"}, {known_color::light_goldenrod_yellow, L"light_goldenrod_yellow"}, {known_color::light_gray, L"light_gray"}, {known_color::light_green, L"light_green"}, {known_color::light_pink, L"light_pink"}, {known_color::light_salmon, L"light_salmon"}, {known_color::light_sea_green, L"light_sea_green"}, {known_color::light_sky_blue, L"light_sky_blue"}, {known_color::light_slate_gray, L"light_slate_gray"}, {known_color::light_steel_blue, L"light_steel_blue"}, {known_color::light_yellow, L"light_yellow"}, {known_color::lime, L"lime"}, {known_color::lime_green, L"lime_green"}, {known_color::linen, L"linen"}, {known_color::magenta, L"magenta"}, {known_color::maroon, L"maroon"}, {known_color::medium_aquamarine, L"medium_aquamarine"}, {known_color::medium_blue, L"medium_blue"}, {known_color::medium_purple, L"medium_purple"}, {known_color::medium_sea_green, L"medium_sea_green"}, {known_color::medium_slate_blue, L"medium_slate_blue"}, {known_color::medium_spring_green, L"medium_spring_green"}, {known_color::medium_turquoise, L"medium_turquoise"}, {known_color::medium_violet_red, L"medium_violet_red"}, {known_color::midnight_blue, L"midnight_blue"}, {known_color::mint_cream, L"mint_cream"}, {known_color::moccasin, L"moccasin"}, {known_color::navajo_white, L"navajo_white"}, {known_color::navy, L"navy"}, {known_color::old_lace, L"old_lace"}, {known_color::olive, L"olive"}, {known_color::olive_drab, L"olive_drab"}, {known_color::orange, L"orange"}, {known_color::orange_red, L"orange_red"}, {known_color::orchid, L"orchid"}, {known_color::pale_goldenrod, L"pale_goldenrod"}, {known_color::pale_green, L"pale_green"}, {known_color::pale_turquoise, L"pale_turquoise"}, {known_color::pale_violet_red, L"pale_violet_red"}, {known_color::papaya_whip, L"papaya_whip"}, {known_color::peach_puff, L"peach_puff"}, {known_color::peru, L"peru"}, {known_color::pink, L"pink"}, {known_color::plum, L"plum"}, {known_color::powder_blue, L"powder_blue"}, {known_color::rebecca_purple, L"rebecca_purple"}, {known_color::purple, L"purple"}, {known_color::red, L"red"}, {known_color::rosy_brown, L"rosy_brown"}, {known_color::royal_blue, L"royal_blue"}, {known_color::saddle_brown, L"saddle_brown"}, {known_color::salmon, L"salmon"}, {known_color::sandy_brown, L"sandy_brown"}, {known_color::sea_green, L"sea_green"}, {known_color::sea_shell, L"sea_shell"}, {known_color::sienna, L"sienna"}, {known_color::silver, L"silver"}, {known_color::sky_blue, L"sky_blue"}, {known_color::slate_blue, L"slate_blue"}, {known_color::slate_gray, L"slate_gray"}, {known_color::snow, L"snow"}, {known_color::spring_green, L"spring_green"}, {known_color::steel_blue, L"steel_blue"}, {known_color::tan, L"tan"}, {known_color::teal, L"teal"}, {known_color::thistle, L"thistle"}, {known_color::tomato, L"tomato"}, {known_color::turquoise, L"turquoise"}, {known_color::violet, L"violet"}, {known_color::wheat, L"wheat"}, {known_color::white, L"white"}, {known_color::white_smoke, L"white_smoke"}, {known_color::yellow, L"yellow"}, {known_color::yellow_green, L"yellow_green"}, {known_color::button_face, L"button_face"}, {known_color::button_highlight, L"button_highlight"}, {known_color::button_shadow, L"button_shadow"}, {known_color::gradient_active_caption, L"gradient_active_caption"}, {known_color::gradient_inactive_caption, L"gradient_inactive_caption"}, {known_color::menu_bar, L"menu_bar"}, {known_color::menu_highlight, L"menu_highlight"}, {known_color::accent, L"accent"}, {known_color::accent_text, L"accent_text"}, {known_color::text_box, L"text_box"}, {known_color::text_box_text, L"text_box_text"}});}
383  }
384 }
The system-defined color of the lightest color in the color gradient of an active window&#39;s title bar...
The system-defined color of the background of a scroll bar.
The system-defined color of an inactive window&#39;s border.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined color of the text of selected items.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined shadow color of a 3-D element. The shadow color is applied to parts of a 3-D eleme...
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined highlight color of a 3-D element. The highlight color is applied to the parts of a...
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
A system-defined color.
A system-defined color.
The system-defined color of the background of the active window&#39;s title bar.
A system-defined color.
The system-defined color of the accent text color (macos specific. On other platform is same as windo...
The system-defined color of the desktop.
A system-defined color.
The system-defined color of the active window&#39;s border.
The system-defined color of the background of selected items. This includes selected menu items as we...
A system-defined color.
The system-defined color of the lightest color in the color gradient of an inactive window&#39;s title ba...
The system-defined color of the background of a ToolTip.
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined face color of a 3-D element.
A system-defined color.
The system-defined color that is the light color of a 3-D element. The light color is applied to part...
A system-defined color.
A system-defined color.
The system-defined color of a menu&#39;s text.
The system-defined color of a menu&#39;s background.
The system-defined face color of a 3-D element.
A system-defined color.
A system-defined color.
The system-defined color used to highlight menu items when the menu appears as a flat menu...
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined color of a window frame.
The system-defined color of the accent text color (macos specific. On other platform is same as highl...
The system-defined color of the application workspace. The application workspace is the area in a mul...
The system-defined color of text in a 3-D element.
The system-defined color of the background of an inactive window&#39;s title bar.
A system-defined color.
A system-defined color.
The system-defined color of the accent color (macos specific. On other platform is same as window)...
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined color that is the dark shadow color of a 3-D element. The dark shadow color is app...
The system-defined color of the text in an inactive window&#39;s title bar.
A system-defined color.
Contains xtd::ustring class.
A system-defined color.
A system-defined color.
known_color
Specifies the known system colors.
Definition: known_color.h:18
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined color of the text in the client area of a window.
The system-defined color that is the highlight color of a 3-D element. This color is applied to parts...
The system-defined color of the accent color (macos specific. On other platform is same as menu_highl...
A system-defined color.
A system-defined color.
The system-defined color of the text of a ToolTip.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined color of the background of a menu bar.
A system-defined color.
A system-defined color.
The system-defined color used to designate a hot-tracked item. Single-clicking a hot-tracked item exe...
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
A system-defined color.
The system-defined color of the text in the active window&#39;s title bar.
A system-defined color.
The system-defined color of dimmed text. Items in a list that are disabled are displayed in dimmed te...
The system-defined color of the background in the client area of a window.
A system-defined color.
The system-defined color that is the shadow color of a 3-D element. This color is applied to parts of...
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