xtd 0.2.0
hatch_brush.hpp
Go to the documentation of this file.
1
4#pragma once
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
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
Contains xtd::drawing::brush class.
brush()
Initialize a new instance of brush class.
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
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:...
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.
xtd::drawing::color foreground_color() const noexcept
Gets the color of 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:...
xtd::drawing::drawing_2d::hatch_style hatch_style() const noexcept
Gets the hatch style of this hatch_brush object.
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:...
Contains xtd::drawing::color class.
Contains drawing_export_ keyword.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
xtd::shared_ptr_object< 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.
Contains xtd::drawing::image class.
The xtd::drawing::drawing2d namespace provides advanced two-dimensional and vector graphics functiona...
Definition hatch_brush.hpp:81
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition compositing_mode.hpp:12
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::drawing::point class.
Contains xtd::drawing::rectangle class.