xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
dash_style.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/ustring.h>
6
8namespace xtd {
10 namespace drawing {
18 enum class dash_style {
20 solid = 0,
22 dash,
24 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}
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
dash_style
Specifies the style of dashed lines drawn with a xtd::drawing::pen object.
Definition: dash_style.h:18
@ dash_dot
Specifies a line consisting of a repeating pattern of dash-dot.
@ dot
Specifies a line consisting of dots.
@ custom
Specifies a user-defined custom dash style.
@ dash
Specifies a line consisting of dashes.
@ dash_dot_dot
Specifies a line consisting of a repeating pattern of dash-dot-dot.
@ solid
Specifies a solid line.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.