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.
dash_style.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 dash_style {
20  solid = 0,
22  dash,
24  dot,
26  dash_dot,
30  custom
31  };
32 
34  inline std::ostream& operator<<(std::ostream& os, dash_style value) {return os << xtd::to_string(value, {{dash_style::solid, "solid"}, {dash_style::dash, "dash"}, {dash_style::dot, "dot"}, {dash_style::dash_dot, "dash_dot"}, {dash_style::dash_dot_dot, "dash_dot_dot"}});}
35  inline std::wostream& operator<<(std::wostream& os, dash_style value) {return os << xtd::to_string(value, {{dash_style::solid, L"solid"}, {dash_style::dash, L"dash"}, {dash_style::dot, L"dot"}, {dash_style::dash_dot, L"dash_dot"}, {dash_style::dash_dot_dot, L"dash_dot_dot"}});}
37  }
38 }
dash_style
Specifies the style of dashed lines drawn with a xtd::drawing::pen object.
Definition: dash_style.h:18
Specifies a line consisting of dashes.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies a solid line.
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1110
Specifies a line consisting of a repeating pattern of dash-dot-dot.
Specifies a line consisting of a repeating pattern of dash-dot.
Contains xtd::ustring class.
Specifies a line consisting of dots.
Specifies a user-defined custom dash style.