xtd 0.2.0
conical_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 <xtd/array>
11#include <xtd/iequatable>
12#include <utility>
13
15namespace xtd {
17 namespace drawing {
19 namespace drawing_2d {
36 struct data;
37
38 public:
40
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;
120
129
130 private:
131 void recreate_handle();
132
133 xtd::sptr<data> data_;
134 };
135 }
136 }
137}
138
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
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...
xtd::drawing::point_f center_point() const noexcept
Gets the center point of the conical gradient.
conical_gradient_brush(const xtd::drawing::point_f &center, const xtd::array< 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 &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::array< 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::array< xtd::drawing::color > &conical_colors)
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.
const xtd::drawing::drawing_2d::gradient_stop_collection & conical_colors() const noexcept
Gets the starting and ending colors of the gradient.
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...
conical_gradient_brush(const xtd::drawing::point &center, const xtd::array< xtd::drawing::color > &conical_colors, float angle)
Initializes a new instance of the xtd::drawing::drawing_2d::conical_gradient_brush class with the spe...
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