xtd 0.2.0
Loading...
Searching...
No Matches
hatch_style.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace drawing {
12 namespace drawing_2d {
19 enum class hatch_style {
22 horizontal = 0,
25 vertical = 1,
34 cross = 4,
40 percent_05 = 6,
43 percent_10 = 7,
46 percent_20 = 8,
49 percent_25 = 9,
52 percent_30 = 10,
55 percent_40 = 11,
58 percent_50 = 12,
61 percent_60 = 13,
64 percent_70 = 14,
67 percent_75 = 15,
70 percent_80 = 16,
73 percent_90 = 17,
94 light_vertical = 24,
100 narrow_vertical = 26,
106 dark_vertical = 28,
109 dark_horizontal = 29,
121 dashed_vertical = 33,
124 small_confetti = 34,
127 large_confetti = 35,
130 zig_zag = 36,
133 wave = 37,
136 diagonal_brick = 38,
139 horizontal_brick = 39,
142 weave = 40,
145 plaid = 41,
148 divot = 42,
151 dotted_grid = 43,
154 dotted_diamond = 44,
157 shingle = 45,
160 trellis = 46,
163 sphere = 47,
166 small_grid = 48,
175 outlined_diamond = 51,
178 solid_diamond = 52,
182 };
183 }
184
187 namespace [[deprecated("Replaced by xtd::drawing::drawing_2d - Will be removed in version 0.4.0.")]] drawing2d {
190 using hatch_style [[deprecated("Replaced by xtd::drawing::drawing_2d::hatch_style - Will be removed in version 0.4.0.")]] = xtd::drawing::drawing_2d::hatch_style;
191 }
192 }
193}
194
197 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"}, {xtd::drawing::drawing_2d::hatch_style::wide_checker_board, "wide_checker_board"}};}
198};
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
hatch_style
Specifies the different patterns available for xtd::drawing::drawing_2d::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 xtd::drawing::dr...
@ 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 xtd::drawing::drawing_2d::ha...
@ 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 x...
@ 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 xtd::drawing::drawing_2d::...
@ 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 xtd::drawing::drawing_2d::...
@ 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 xtd::dra...
@ 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.
@ wide_checker_board
Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of x...
@ 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 xtd::drawing::...
@ 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 xtd::drawing::drawing_2d::ha...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38