xtd 0.2.0
hatch_style.h
Go to the documentation of this file.
1 #pragma once
5 #include "drawing2d.h"
6 #include <xtd/enum>
7 
9 namespace xtd {
11  namespace drawing {
13  namespace drawing_2d {
20  enum class hatch_style {
22  horizontal = 0,
24  vertical = 1,
26  forward_diagonal = 2,
30  cross = 4,
32  diagonal_cross = 5,
34  percent_05 = 6,
36  percent_10 = 7,
38  percent_20 = 8,
40  percent_25 = 9,
42  percent_30 = 10,
44  percent_40 = 11,
46  percent_50 = 12,
48  percent_60 = 13,
50  percent_70 = 14,
52  percent_75 = 15,
54  percent_80 = 16,
56  percent_90 = 17,
70  light_vertical = 24,
72  light_horizontal = 25,
74  narrow_vertical = 26,
76  narrow_horizontal = 27,
78  dark_vertical = 28,
80  dark_horizontal = 29,
86  dashed_horizontal = 32,
88  dashed_vertical = 33,
90  small_confetti = 34,
92  large_confetti = 35,
94  zig_zag = 36,
96  wave = 37,
98  diagonal_brick = 38,
100  horizontal_brick = 39,
102  weave = 40,
104  plaid = 41,
106  divot = 42,
108  dotted_grid = 43,
110  dotted_diamond = 44,
112  shingle = 45,
114  trellis = 46,
116  sphere = 47,
118  small_grid = 48,
120  small_checker_board = 49,
122  large_checker_board = 50,
124  outlined_diamond = 51,
126  solid_diamond = 52,
128  wide_checker_board = 53,
129  };
130  }
131  }
132 }
133 
136  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::drawing::drawing_2d::hatch_style> {{xtd::drawing::drawing_2d::hatch_style::horizontal, "horizontal"}, {xtd::drawing::drawing_2d::hatch_style::vertical, "vertical"}, {xtd::drawing::drawing_2d::hatch_style::forward_diagonal, "forward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::backward_diagonal, "backward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::cross, "cross"}, {xtd::drawing::drawing_2d::hatch_style::diagonal_cross, "diagonal_cross"}, {xtd::drawing::drawing_2d::hatch_style::percent_05, "percent_05"}, {xtd::drawing::drawing_2d::hatch_style::percent_10, "percent_10"}, {xtd::drawing::drawing_2d::hatch_style::percent_20, "percent_20"}, {xtd::drawing::drawing_2d::hatch_style::percent_25, "percent_25"}, {xtd::drawing::drawing_2d::hatch_style::percent_30, "percent_30"}, {xtd::drawing::drawing_2d::hatch_style::percent_40, "percent_40"}, {xtd::drawing::drawing_2d::hatch_style::percent_50, "percent_50"}, {xtd::drawing::drawing_2d::hatch_style::percent_60, "percent_60"}, {xtd::drawing::drawing_2d::hatch_style::percent_70, "percent_70"}, {xtd::drawing::drawing_2d::hatch_style::percent_75, "percent_75"}, {xtd::drawing::drawing_2d::hatch_style::percent_80, "percent_80"}, {xtd::drawing::drawing_2d::hatch_style::percent_90, "percent_90"}, {xtd::drawing::drawing_2d::hatch_style::light_downward_diagonal, "light_downward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::light_upward_diagonal, "light_upward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::dark_downward_diagonal, "dark_downward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::dark_upward_diagonal, "dark_upward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::wide_downward_diagonal, "wide_downward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::wide_upward_diagonal, "wide_upward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::light_vertical, "light_vertical"}, {xtd::drawing::drawing_2d::hatch_style::light_horizontal, "light_horizontal"}, {xtd::drawing::drawing_2d::hatch_style::narrow_vertical, "narrow_vertical"}, {xtd::drawing::drawing_2d::hatch_style::narrow_horizontal, "narrow_horizontal"}, {xtd::drawing::drawing_2d::hatch_style::dark_vertical, "dark_vertical"}, {xtd::drawing::drawing_2d::hatch_style::dark_horizontal, "dark_horizontal"}, {xtd::drawing::drawing_2d::hatch_style::dashed_downward_diagonal, "dashed_downward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::dashed_upward_diagonal, "dashed_upward_diagonal"}, {xtd::drawing::drawing_2d::hatch_style::dashed_horizontal, "dashed_horizontal"}, {xtd::drawing::drawing_2d::hatch_style::dashed_vertical, "dashed_vertical"}, {xtd::drawing::drawing_2d::hatch_style::small_confetti, "small_confetti"}, {xtd::drawing::drawing_2d::hatch_style::large_confetti, "large_confetti"}, {xtd::drawing::drawing_2d::hatch_style::zig_zag, "zig_zag"}, {xtd::drawing::drawing_2d::hatch_style::wave, "wave"}, {xtd::drawing::drawing_2d::hatch_style::diagonal_brick, "diagonal_brick"}, {xtd::drawing::drawing_2d::hatch_style::horizontal_brick, "horizontal_brick"}, {xtd::drawing::drawing_2d::hatch_style::weave, "weave"}, {xtd::drawing::drawing_2d::hatch_style::plaid, "plaid"}, {xtd::drawing::drawing_2d::hatch_style::divot, "divot"}, {xtd::drawing::drawing_2d::hatch_style::dotted_grid, "dotted_grid"}, {xtd::drawing::drawing_2d::hatch_style::dotted_diamond, "dotted_diamond"}, {xtd::drawing::drawing_2d::hatch_style::shingle, "shingle"}, {xtd::drawing::drawing_2d::hatch_style::trellis, "trellis"}, {xtd::drawing::drawing_2d::hatch_style::sphere, "sphere"}, {xtd::drawing::drawing_2d::hatch_style::small_grid, "small_grid"}, {xtd::drawing::drawing_2d::hatch_style::small_checker_board, "small_checker_board"}, {xtd::drawing::drawing_2d::hatch_style::large_checker_board, "large_checker_board"}, {xtd::drawing::drawing_2d::hatch_style::outlined_diamond, "outlined_diamond"}, {xtd::drawing::drawing_2d::hatch_style::solid_diamond, "solid_diamond"}};}
137 };
A pattern of crisscross diagonal lines.
Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 perce...
Specifies dashed diagonal lines, that slant to the left from top points to bottom points...
Specifies horizontal and vertical lines that cross.
Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:90...
Specifies forward diagonal and backward diagonal lines, each of which is composed of dots...
Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:60...
Specifies horizontal lines that are spaced 75 percent closer together than hatch style horizontal (or...
Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:80...
Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:10...
Specifies a hatch that has the appearance of a checkerboard placed diagonally.
Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:40...
A pattern of lines on a diagonal from upper right to lower left.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than, and are twice the width of forward_diagonal. This hatch pattern is not antialiased.
Specifies a hatch that has the appearance of a trellis.
A pattern of lines on a diagonal from upper left to lower right.
Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as hatch style forward_diagonal, and are triple its width, but are not antialiased.
Specifies horizontal lines that are composed of tildes.
Specifies horizontal and vertical lines, each of which is composed of dots, that cross.
Specifies dashed diagonal lines, that slant to the right from top points to bottom points...
Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:20...
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:70...
Specifies a hatch that has the appearance of layered bricks that slant to the left from top points to...
hatch_style
Specifies the different patterns available for xtd::drawing::drawing_2d/::hatch_brush objects...
Definition: hatch_style.h:20
Specifies a hatch that has the appearance of confetti.
Specifies a hatch that has the appearance of divots.
Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:75...
Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 p...
Specifies a hatch that has the appearance of a woven material.
Specifies a hatch that has the appearance of horizontally layered bricks.
Specifies a hatch that has the appearance of confetti, and is composed of larger pieces than small_co...
Specifies vertical lines that are spaced 50 percent closer together than vertical.
Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of l...
Specifies a hatch that has the appearance of diagonally layered shingles that slant to the right from...
Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:50...
Specifies vertical lines that are spaced 75 percent closer together than hatch style vertical (or 25 ...
Specifies a hatch that has the appearance of a checkerboard.
Specifies vertical lines that are spaced 50 percent closer together than vertical and are twice its w...
Specifies diagonal lines that slant to the left from top points to bottom points, have the same spaci...
Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of s...
Specifies a hatch that has the appearance of spheres laid adjacent to one another.
Specifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hat...
Specifies horizontal lines that are spaced 50 percent closer together than horizontal.
Contains xtd::drawing::drawing_2d/::matrix class.
Specifies horizontal lines that are composed of zigzags.
Specifies horizontal lines that are spaced 50 percent closer together than horizontal and are twice t...
Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 pe...
Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:30...
Specifies forward diagonal and backward diagonal lines that cross but are not antialiased.
Specifies a hatch that has the appearance of a plaid material.
Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:25...
Provides the registration struct for enumerations.
Definition: enum_register.h:36
Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:95...