xtd 0.2.0
Loading...
Searching...
No Matches
solid_brush.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.hpp"
6#include "brush.hpp"
7#include "color.hpp"
8#include <xtd/iequatable>
9
11namespace xtd {
13 namespace drawing {
30 class drawing_export_ solid_brush final : public xtd::drawing::brush, public xtd::iequatable<solid_brush> {
31 struct data;
32
33 public:
35
41
43 solid_brush(const solid_brush& value);
44 solid_brush& operator =(const solid_brush& value);
46
48
52 const xtd::drawing::color& color() const noexcept;
56 xtd::drawing::solid_brush& color(const xtd::drawing::color& value) noexcept;
58
60
62 using brush::equals;
63 bool equals(const solid_brush& value) const noexcept override;
65
66 private:
68
69 xtd::sptr<data> data_;
70 };
71 }
72}
Contains xtd::drawing::brush class.
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
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.hpp:30
solid_brush(const xtd::drawing::color &color)
Initializes a new xtd::drawing::solid_brush object of the specified color.
const xtd::drawing::color & color() const noexcept
Gets the color of this xtd::drawing::solid_brush object.
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::color class.
#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