xtd 0.2.0
Loading...
Searching...
No Matches
hatch_brush.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../drawing_export.h"
6#include "../brush.h"
7#include "../color.h"
8#include "../image.h"
9#include "../point.h"
10#include "../rectangle.h"
11#include "hatch_style.h"
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 std::shared_ptr<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.h:33
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Defines a rectangular xtd::drawing::brush with a hatch style, a foreground color, and a background co...
Definition hatch_brush.h: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.h:20
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:18
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:110
Contains xtd::drawing::drawing_2d::hatch_style enum class.
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
hatch_style
Specifies the different patterns available for xtd::drawing::drawing_2d::hatch_brush objects.
Definition hatch_style.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10