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.
pen_type.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace drawing {
12  namespace drawing2d {
20  enum class pen_type {
22  solid_color = 0,
24  hatch_fill = 1,
26  texture_fill = 2,
28  path_gradient = 3,
30  linear_gradient = 4
31  };
32 
34  inline std::ostream& operator<<(std::ostream& os, pen_type value) {return os << to_string(value, {{pen_type::solid_color, "solid_color"}, {pen_type::hatch_fill, "hatch_fill"}, {pen_type::texture_fill, "texture_fill"}, {pen_type::path_gradient, "path_gradient"}, {pen_type::linear_gradient, "linear_gradient"}});}
35  inline std::wostream& operator<<(std::wostream& os, pen_type value) {return os << to_string(value, {{pen_type::solid_color, L"solid_color"}, {pen_type::hatch_fill, L"hatch_fill"}, {pen_type::texture_fill, L"texture_fill"}, {pen_type::path_gradient, L"path_gradient"}, {pen_type::linear_gradient, L"linear_gradient"}});}
37  }
38  }
39 }
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
pen_type
Specifies the type of fill a xtd::drawing::pen object uses to fill lines.
Definition: pen_type.h:20
@ hatch_fill
Specifies a hatch fill.
@ linear_gradient
Specifies a linear gradient fill.
@ solid_color
Specifies a solid fill.
@ texture_fill
Specifies a bitmap texture fill.
@ path_gradient
Specifies a path gradient fill.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.