xtd 0.2.0
radial_gradient_brush.hpp
Go to the documentation of this file.
1
4#pragma once
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
84
87 radial_gradient_brush& operator =(const radial_gradient_brush& value);
89
91
104
107 xtd::drawing::point_f focal_point() const noexcept;
116
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
Contains xtd::drawing::brush class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
brush()
Initialize a new instance of brush class.
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
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...
float radius() const noexcept
Gets the angle of the gradient.
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...
const xtd::drawing::drawing_2d::gradient_stop_collection & radial_colors() const noexcept
Gets the starting and ending colors of the gradient.
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...
xtd::drawing::point_f focal_point() const noexcept
Gets the focal point of the radial gradient.
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...
Contains drawing_export_ keyword.
Contains xtd::drawing::drawing_2d::gradient_stop alias.
xtd::collections::generic::list< 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
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ center
Specifies that the xtd::drawing::pen object is centered over the theoretical line.
Definition pen_alignment.hpp:23
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.
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