xtd 0.2.0
Loading...
Searching...
No Matches
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 <xtd/iequatable>
13#include <array>
14
16namespace xtd {
18 namespace drawing {
20 namespace drawing_2d {
32 class drawing_export_ hatch_brush final : public brush, public xtd::iequatable<hatch_brush> {
33 struct data;
34
35 public:
37
50
52 hatch_brush(const hatch_brush& value);
53 hatch_brush& operator =(const hatch_brush& value);
55
57
62
65 xtd::drawing::color foreground_color() const noexcept;
66
69 xtd::drawing::drawing_2d::hatch_style hatch_style() const noexcept;
71
73
75 using brush::equals;
76 bool equals(const hatch_brush& value) const noexcept override;
78
79 private:
81 void recreate_handle();
82
83 xtd::sptr<data> data_;
84 };
85 }
86
89 namespace [[deprecated("Replaced by xtd::drawing::drawing_2d - Will be removed in version 0.4.0.")]] drawing2d {
92 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;
93 }
94 }
95}
96
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:32
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
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:114
Contains xtd::drawing::drawing_2d::hatch_style enum class.
#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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10