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.
hatch_style.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 {
19  enum class hatch_style {
21  horizontal = 0,
23  vertical = 1,
25  forward_diagonal = 2,
29  cross = 4,
31  diagonal_cross = 5,
33  percent_05 = 6,
35  percent_10 = 7,
37  percent_20 = 8,
39  percent_25 = 9,
41  percent_30 = 10,
43  percent_40 = 11,
45  percent_50 = 12,
47  percent_60 = 13,
49  percent_70 = 14,
51  percent_75 = 15,
53  percent_80 = 16,
55  percent_90 = 17,
69  light_vertical = 24,
71  light_horizontal = 25,
73  narrow_vertical = 26,
75  narrow_horizontal = 27,
77  dark_vertical = 28,
79  dark_horizontal = 29,
85  dashed_horizontal = 32,
87  dashed_vertical = 33,
89  small_confetti = 34,
91  large_confetti = 35,
93  zig_zag = 36,
95  wave = 37,
97  diagonal_brick = 38,
99  horizontal_brick = 39,
101  weave = 40,
103  plaid = 41,
105  divot = 42,
107  dotted_grid = 43,
109  dotted_diamond = 44,
111  shingle = 45,
113  trellis = 46,
115  sphere = 47,
117  small_grid = 48,
119  small_checker_board = 49,
121  large_checker_board = 50,
123  outlined_diamond = 51,
125  solid_diamond = 52,
126  };
127 
129  inline std::ostream& operator<<(std::ostream& os, hatch_style value) {return os << to_string(value, {{hatch_style::horizontal, "horizontal"}, {hatch_style::vertical, "vertical"}, {hatch_style::forward_diagonal, "forward_diagonal"}, {hatch_style::backward_diagonal, "backward_diagonal"}, {hatch_style::cross, "cross"}, {hatch_style::diagonal_cross, "diagonal_cross"}, {hatch_style::percent_05, "percent_05"}, {hatch_style::percent_10, "percent_10"}, {hatch_style::percent_20, "percent_20"}, {hatch_style::percent_25, "percent_25"}, {hatch_style::percent_30, "percent_30"}, {hatch_style::percent_40, "percent_40"}, {hatch_style::percent_50, "percent_50"}, {hatch_style::percent_60, "percent_60"}, {hatch_style::percent_70, "percent_70"}, {hatch_style::percent_75, "percent_75"}, {hatch_style::percent_80, "percent_80"}, {hatch_style::percent_90, "percent_90"}, {hatch_style::light_downward_diagonal, "light_downward_diagonal"}, {hatch_style::light_upward_diagonal, "light_upward_diagonal"}, {hatch_style::dark_downward_diagonal, "dark_downward_diagonal"}, {hatch_style::dark_upward_diagonal, "dark_upward_diagonal"}, {hatch_style::wide_downward_diagonal, "wide_downward_diagonal"}, {hatch_style::wide_upward_diagonal, "wide_upward_diagonal"}, {hatch_style::light_vertical, "light_vertical"}, {hatch_style::light_horizontal, "light_horizontal"}, {hatch_style::narrow_vertical, "narrow_vertical"}, {hatch_style::narrow_horizontal, "narrow_horizontal"}, {hatch_style::dark_vertical, "dark_vertical"}, {hatch_style::dark_horizontal, "dark_horizontal"}, {hatch_style::dashed_downward_diagonal, "dashed_downward_diagonal"}, {hatch_style::dashed_upward_diagonal, "dashed_upward_diagonal"}, {hatch_style::dashed_horizontal, "dashed_horizontal"}, {hatch_style::dashed_vertical, "dashed_vertical"}, {hatch_style::small_confetti, "small_confetti"}, {hatch_style::large_confetti, "large_confetti"}, {hatch_style::zig_zag, "zig_zag"}, {hatch_style::wave, "wave"}, {hatch_style::diagonal_brick, "diagonal_brick"}, {hatch_style::horizontal_brick, "horizontal_brick"}, {hatch_style::weave, "weave"}, {hatch_style::plaid, "plaid"}, {hatch_style::divot, "divot"}, {hatch_style::dotted_grid, "dotted_grid"}, {hatch_style::dotted_diamond, "dotted_diamond"}, {hatch_style::shingle, "shingle"}, {hatch_style::trellis, "trellis"}, {hatch_style::sphere, "sphere"}, {hatch_style::small_grid, "small_grid"}, {hatch_style::small_checker_board, "small_checker_board"}, {hatch_style::large_checker_board, "large_checker_board"}, {hatch_style::outlined_diamond, "outlined_diamond"}, {hatch_style::solid_diamond, "solid_diamond"}});}
130  inline std::wostream& operator<<(std::wostream& os, hatch_style value) {return os << to_string(value, {{hatch_style::horizontal, L"horizontal"}, {hatch_style::vertical, L"vertical"}, {hatch_style::forward_diagonal, L"forward_diagonal"}, {hatch_style::backward_diagonal, L"backward_diagonal"}, {hatch_style::cross, L"cross"}, {hatch_style::diagonal_cross, L"diagonal_cross"}, {hatch_style::percent_05, L"percent_05"}, {hatch_style::percent_10, L"percent_10"}, {hatch_style::percent_20, L"percent_20"}, {hatch_style::percent_25, L"percent_25"}, {hatch_style::percent_30, L"percent_30"}, {hatch_style::percent_40, L"percent_40"}, {hatch_style::percent_50, L"percent_50"}, {hatch_style::percent_60, L"percent_60"}, {hatch_style::percent_70, L"percent_70"}, {hatch_style::percent_75, L"percent_75"}, {hatch_style::percent_80, L"percent_80"}, {hatch_style::percent_90, L"percent_90"}, {hatch_style::light_downward_diagonal, L"light_downward_diagonal"}, {hatch_style::light_upward_diagonal, L"light_upward_diagonal"}, {hatch_style::dark_downward_diagonal, L"dark_downward_diagonal"}, {hatch_style::dark_upward_diagonal, L"dark_upward_diagonal"}, {hatch_style::wide_downward_diagonal, L"wide_downward_diagonal"}, {hatch_style::wide_upward_diagonal, L"wide_upward_diagonal"}, {hatch_style::light_vertical, L"light_vertical"}, {hatch_style::light_horizontal, L"light_horizontal"}, {hatch_style::narrow_vertical, L"narrow_vertical"}, {hatch_style::narrow_horizontal, L"narrow_horizontal"}, {hatch_style::dark_vertical, L"dark_vertical"}, {hatch_style::dark_horizontal, L"dark_horizontal"}, {hatch_style::dashed_downward_diagonal, L"dashed_downward_diagonal"}, {hatch_style::dashed_upward_diagonal, L"dashed_upward_diagonal"}, {hatch_style::dashed_horizontal, L"dashed_horizontal"}, {hatch_style::dashed_vertical, L"dashed_vertical"}, {hatch_style::small_confetti, L"small_confetti"}, {hatch_style::large_confetti, L"large_confetti"}, {hatch_style::zig_zag, L"zig_zag"}, {hatch_style::wave, L"wave"}, {hatch_style::diagonal_brick, L"diagonal_brick"}, {hatch_style::horizontal_brick, L"horizontal_brick"}, {hatch_style::weave, L"weave"}, {hatch_style::plaid, L"plaid"}, {hatch_style::divot, L"divot"}, {hatch_style::dotted_grid, L"dotted_grid"}, {hatch_style::dotted_diamond, L"dotted_diamond"}, {hatch_style::shingle, L"shingle"}, {hatch_style::trellis, L"trellis"}, {hatch_style::sphere, L"sphere"}, {hatch_style::small_grid, L"small_grid"}, {hatch_style::small_checker_board, L"small_checker_board"}, {hatch_style::large_checker_board, L"large_checker_board"}, {hatch_style::outlined_diamond, L"outlined_diamond"}, {hatch_style::solid_diamond, L"solid_diamond"}});}
132  }
133  }
134 }
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
hatch_style
Specifies the different patterns available for xtd::drawing::drawing2d::hatch_brush objects.
Definition: hatch_style.h:19
@ diagonal_brick
Specifies a hatch that has the appearance of layered bricks that slant to the left from top points to...
@ dashed_upward_diagonal
Specifies dashed diagonal lines, that slant to the left from top points to bottom points.
@ percent_60
Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:40.
@ shingle
Specifies a hatch that has the appearance of diagonally layered shingles that slant to the right from...
@ percent_40
Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:60.
@ percent_80
Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:20.
@ cross
Specifies horizontal and vertical lines that cross.
@ dark_downward_diagonal
Specifies diagonal lines that slant to the right from top points to bottom points,...
@ sphere
Specifies a hatch that has the appearance of spheres laid adjacent to one another.
@ narrow_vertical
Specifies vertical lines that are spaced 75 percent closer together than hatch style vertical (or 25 ...
@ light_upward_diagonal
Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 pe...
@ light_vertical
Specifies vertical lines that are spaced 50 percent closer together than vertical.
@ plaid
Specifies a hatch that has the appearance of a plaid material.
@ horizontal
A pattern of horizontal lines.
@ large_checker_board
Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of s...
@ zig_zag
Specifies horizontal lines that are composed of zigzags.
@ wide_upward_diagonal
Specifies diagonal lines that slant to the left from top points to bottom points, have the same spaci...
@ percent_25
Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:75.
@ trellis
Specifies a hatch that has the appearance of a trellis.
@ dotted_diamond
Specifies forward diagonal and backward diagonal lines, each of which is composed of dots,...
@ percent_10
Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:90.
@ percent_30
Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:70.
@ percent_20
Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:80.
@ percent_70
Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:30.
@ light_horizontal
Specifies horizontal lines that are spaced 50 percent closer together than horizontal.
@ small_confetti
Specifies a hatch that has the appearance of confetti.
@ percent_50
Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:50.
@ small_grid
Specifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hat...
@ forward_diagonal
A pattern of lines on a diagonal from upper left to lower right.
@ percent_75
Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:25.
@ dark_horizontal
Specifies horizontal lines that are spaced 50 percent closer together than horizontal and are twice t...
@ divot
Specifies a hatch that has the appearance of divots.
@ diagonal_cross
A pattern of crisscross diagonal lines.
@ dashed_downward_diagonal
Specifies dashed diagonal lines, that slant to the right from top points to bottom points.
@ large_confetti
Specifies a hatch that has the appearance of confetti, and is composed of larger pieces than small_co...
@ backward_diagonal
A pattern of lines on a diagonal from upper right to lower left.
@ dashed_horizontal
Specifies dashed horizontal lines.
@ dark_upward_diagonal
Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 perce...
@ light_downward_diagonal
Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 p...
@ dashed_vertical
Specifies dashed vertical lines.
@ wave
Specifies horizontal lines that are composed of tildes.
@ horizontal_brick
Specifies a hatch that has the appearance of horizontally layered bricks.
@ percent_90
Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:10.
@ percent_05
Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:95.
@ dotted_grid
Specifies horizontal and vertical lines, each of which is composed of dots, that cross.
@ solid_diamond
Specifies a hatch that has the appearance of a checkerboard placed diagonally.
@ wide_downward_diagonal
Specifies diagonal lines that slant to the right from top points to bottom points,...
@ narrow_horizontal
Specifies horizontal lines that are spaced 75 percent closer together than hatch style horizontal (or...
@ small_checker_board
Specifies a hatch that has the appearance of a checkerboard.
@ vertical
A pattern of vertical lines.
@ outlined_diamond
Specifies forward diagonal and backward diagonal lines that cross but are not antialiased.
@ weave
Specifies a hatch that has the appearance of a woven material.
@ dark_vertical
Specifies vertical lines that are spaced 50 percent closer together than vertical and are twice its w...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.