xtd 0.2.0
Loading...
Searching...
No Matches
radial_gradient_brush.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../drawing_export.hpp"
6#include "../brush.hpp"
7#include "../point.hpp"
8#include "../rectangle.hpp"
10#include <xtd/iequatable>
11#include <array>
12#include <utility>
13
15namespace xtd {
17 namespace drawing {
19 namespace drawing_2d {
30 class drawing_export_ radial_gradient_brush final : public brush, public xtd::iequatable<radial_gradient_brush> {
31 struct data;
32
33 public:
35
55 radial_gradient_brush(const xtd::drawing::point& center, const xtd::drawing::color& color1, const xtd::drawing::color& color2, float radius);
61 radial_gradient_brush(const xtd::drawing::point_f& center, const xtd::drawing::color& color1, const xtd::drawing::color& color2, float radius);
66 radial_gradient_brush(const xtd::drawing::point& center, const std::vector<xtd::drawing::color>& radial_colors);
71 radial_gradient_brush(const xtd::drawing::point_f& center, const std::vector<xtd::drawing::color>& radial_colors);
77 radial_gradient_brush(const xtd::drawing::point& center, const std::vector<xtd::drawing::color>& radial_colors, float radius);
83 radial_gradient_brush(const xtd::drawing::point_f& center, const std::vector<xtd::drawing::color>& radial_colors, float radius);
85
88 radial_gradient_brush& operator =(const radial_gradient_brush& value);
90
92
100 radial_gradient_brush& center_point(const xtd::drawing::point_f& value) noexcept;
104 radial_gradient_brush& center_point(const xtd::drawing::point& value) noexcept;
105
108 xtd::drawing::point_f focal_point() const noexcept;
112 radial_gradient_brush& focal_point(const xtd::drawing::point_f& value) noexcept;
116 radial_gradient_brush& focal_point(const xtd::drawing::point& value) noexcept;
117
120 const xtd::drawing::drawing_2d::gradient_stop_collection& radial_colors() const noexcept;
124 xtd::drawing::drawing_2d::radial_gradient_brush& radial_colors(const xtd::drawing::drawing_2d::gradient_stop_collection& radial_colors);
125
128 float radius() const noexcept;
132 radial_gradient_brush& radius(float value) noexcept;
134
136
138 using brush::equals;
139 bool equals(const radial_gradient_brush& value) const noexcept override;
141
142 private:
143 void recreate_handle();
144
145 xtd::sptr<data> data_;
146 };
147 }
148 }
149}
150
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
Encapsulates a xtd::drawing::brush with a radial gradient. This class cannot be inherited.
Definition radial_gradient_brush.hpp:30
radial_gradient_brush(const xtd::drawing::point &center, const std::vector< xtd::drawing::color > &radial_colors)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush(const xtd::drawing::point_f &center, const std::vector< xtd::drawing::color > &radial_colors)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush(const xtd::drawing::point &center, const xtd::drawing::color &color1, const xtd::drawing::color &color2)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush(const xtd::drawing::point &center, const xtd::drawing::color &color1, const xtd::drawing::color &color2, float radius)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush(const xtd::drawing::point_f &center, const std::vector< xtd::drawing::color > &radial_colors, float radius)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush()
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with default ...
xtd::drawing::point_f center_point() const noexcept
Gets the center point of the radial gradient.
radial_gradient_brush(const xtd::drawing::point &center, const std::vector< xtd::drawing::color > &radial_colors, float radius)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush(const xtd::drawing::point_f &center, const xtd::drawing::color &color1, const xtd::drawing::color &color2)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
radial_gradient_brush(const xtd::drawing::point_f &center, const xtd::drawing::color &color1, const xtd::drawing::color &color2, float radius)
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the spec...
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.hpp:35
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Contains xtd::drawing::drawing_2d::gradient_stop alias.
std::vector< xtd::drawing::drawing_2d::gradient_stop > gradient_stop_collection
Represents a collection of xtd::drawing::drawing_2d::gradient_stop objects that can be individually a...
Definition gradient_stop_collection.hpp:20
#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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10