xtd 0.2.0
Loading...
Searching...
No Matches
conical_gradient_brush.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../drawing_export.h"
6#include "../brush.h"
7#include "../point.h"
8#include "../rectangle.h"
10#include <xtd/iequatable>
11#include <array>
12#include <utility>
13
15namespace xtd {
17 namespace drawing {
19 namespace drawing_2d {
35 class drawing_export_ conical_gradient_brush final : public brush, public xtd::iequatable<conical_gradient_brush> {
36 struct data;
37
38 public:
40
60 conical_gradient_brush(const xtd::drawing::point& center, const xtd::drawing::color& color1, const xtd::drawing::color& color2, float angle);
66 conical_gradient_brush(const xtd::drawing::point_f& center, const xtd::drawing::color& color1, const xtd::drawing::color& color2, float angle);
71 conical_gradient_brush(const xtd::drawing::point& center, const std::vector<xtd::drawing::color>& conical_colors);
76 conical_gradient_brush(const xtd::drawing::point_f& center, const std::vector<xtd::drawing::color>& conical_colors);
82 conical_gradient_brush(const xtd::drawing::point& center, const std::vector<xtd::drawing::color>& conical_colors, float angle);
88 conical_gradient_brush(const xtd::drawing::point_f& center, const std::vector<xtd::drawing::color>& conical_colors, float angle);
90
93 conical_gradient_brush& operator =(const conical_gradient_brush& value);
95
97
102 float angle() const noexcept;
107 conical_gradient_brush& angle(float value) noexcept;
108
111 xtd::drawing::point_f center_point() const noexcept;
115 conical_gradient_brush& center_point(const xtd::drawing::point_f& value) noexcept;
119 conical_gradient_brush& center_point(const xtd::drawing::point& value) noexcept;
120
123 const xtd::drawing::drawing_2d::gradient_stop_collection& conical_colors() const noexcept;
127 xtd::drawing::drawing_2d::conical_gradient_brush& conical_colors(const xtd::drawing::drawing_2d::gradient_stop_collection& conical_colors);
129
131
133 using brush::equals;
134 bool equals(const conical_gradient_brush& value) const noexcept override;
136
137 private:
138 void recreate_handle();
139
140 xtd::sptr<data> data_;
141 };
142 }
143 }
144}
145
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
Encapsulates a xtd::drawing::brush with a conical gradient. This class cannot be inherited.
Definition conical_gradient_brush.h:35
conical_gradient_brush(const xtd::drawing::point_f &center, const xtd::drawing::color &color1, const xtd::drawing::color &color2, float angle)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
conical_gradient_brush()
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with default...
conical_gradient_brush(const xtd::drawing::point &center, const std::vector< xtd::drawing::color > &conical_colors)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
conical_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::conical_gradient_brush class with the spe...
conical_gradient_brush(const xtd::drawing::point_f &center, const std::vector< xtd::drawing::color > &conical_colors, float angle)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
float angle() const noexcept
Gets the angle of the gradient.
conical_gradient_brush(const xtd::drawing::point &center, const std::vector< xtd::drawing::color > &conical_colors, float angle)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
conical_gradient_brush(const xtd::drawing::point_f &center, const std::vector< xtd::drawing::color > &conical_colors)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
conical_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::conical_gradient_brush class with the spe...
conical_gradient_brush(const xtd::drawing::point &center, const xtd::drawing::color &color1, const xtd::drawing::color &color2, float angle)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.h:35
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:54
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h: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.h:20
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10