xtd 0.2.0
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 <array>
11#include <utility>
12
14namespace xtd {
16 namespace drawing {
18 namespace drawing_2d {
30 struct data;
31
32 public:
34
54 radial_gradient_brush(const xtd::drawing::point& center, const xtd::drawing::color& color1, const xtd::drawing::color& color2, float radius);
60 radial_gradient_brush(const xtd::drawing::point_f& center, const xtd::drawing::color& color1, const xtd::drawing::color& color2, float radius);
76 radial_gradient_brush(const xtd::drawing::point& center, const xtd::array<xtd::drawing::color>& radial_colors, float radius);
82 radial_gradient_brush(const xtd::drawing::point_f& center, const xtd::array<xtd::drawing::color>& radial_colors, float radius);
84
87 radial_gradient_brush& operator =(const radial_gradient_brush& value);
89
91
99 radial_gradient_brush& center_point(const xtd::drawing::point_f& value) noexcept;
103 radial_gradient_brush& center_point(const xtd::drawing::point& value) noexcept;
104
107 xtd::drawing::point_f focal_point() const noexcept;
111 radial_gradient_brush& focal_point(const xtd::drawing::point_f& value) noexcept;
115 radial_gradient_brush& focal_point(const xtd::drawing::point& value) noexcept;
116
119 const xtd::drawing::drawing_2d::gradient_stop_collection& radial_colors() const noexcept;
123 xtd::drawing::drawing_2d::radial_gradient_brush& radial_colors(const xtd::drawing::drawing_2d::gradient_stop_collection& radial_colors);
124
127 float radius() const noexcept;
131 radial_gradient_brush& radius(float value) noexcept;
133
134 private:
135 void recreate_handle();
136
137 xtd::sptr<data> data_;
138 };
139 }
140 }
141}
142
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:80
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:46
Encapsulates a xtd::drawing::brush with a radial gradient. This class cannot be inherited.
Definition radial_gradient_brush.hpp:29
radial_gradient_brush(const xtd::drawing::point &center, const xtd::array< 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 &center, const xtd::array< 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 xtd::array< 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 &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 xtd::array< 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()
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_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...
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
Contains xtd::drawing::drawing_2d::gradient_stop alias.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
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