xtd 0.2.0
hatch_brush.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../drawing_export.hpp"
6#include "../brush.hpp"
7#include "../color.hpp"
8#include "../image.hpp"
9#include "../point.hpp"
10#include "../rectangle.hpp"
11#include "hatch_style.hpp"
12#include <array>
13
15namespace xtd {
17 namespace drawing {
19 namespace drawing_2d {
31 class drawing_export_ hatch_brush final : public brush {
32 struct data;
33
34 public:
36
49
51 hatch_brush(const hatch_brush& value);
52 hatch_brush& operator =(const hatch_brush& value);
54
56
61
64 xtd::drawing::color foreground_color() const noexcept;
65
68 xtd::drawing::drawing_2d::hatch_style hatch_style() const noexcept;
70
71 private:
73 void recreate_handle();
74
75 xtd::sptr<data> data_;
76 };
77 }
78
81 namespace [[deprecated("Replaced by xtd::drawing::drawing_2d - Will be removed in version 0.4.0.")]] drawing2d {
84 using hatch_brush [[deprecated("Replaced by xtd::drawing::drawing_2d::hatch_brush - Will be removed in version 0.4.0.")]] = xtd::drawing::drawing_2d::hatch_brush;
85 }
86 }
87}
88
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.hpp:33
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
Defines a rectangular xtd::drawing::brush with a hatch style, a foreground color, and a background co...
Definition hatch_brush.hpp:31
xtd::drawing::color background_color() const noexcept
Gets the color of spaces between the hatch lines drawn by this hatch_brush object.
hatch_brush(xtd::drawing::drawing_2d::hatch_style hatch_style, const xtd::drawing::color &fore_color, const xtd::drawing::color &back_color)
Initializes a new instance of the xtd::drawing::drawing_2d::hatch_brush class with the specified xtd:...
hatch_brush(xtd::drawing::drawing_2d::hatch_style hatch_style, const xtd::drawing::color &fore_color)
Initializes a new instance of the xtd::drawing::drawing_2d::hatch_brush class with the specified xtd:...
Represent foreground color output manipulator class.
Definition foreground_color.hpp:20
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:114
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
hatch_style
Specifies the different patterns available for xtd::drawing::drawing_2d::hatch_brush objects.
Definition hatch_style.hpp:19
Contains xtd::drawing::drawing_2d::hatch_style enum class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10