xtd 0.2.0
solid_brush.h
Go to the documentation of this file.
1 #pragma once
5 #include "../drawing_export.h"
6 #include "brush.h"
7 #include "color.h"
8 #include <xtd/iequatable>
9 
11 namespace 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 
39  explicit solid_brush(const xtd::drawing::color& color);
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:
67  solid_brush();
68 
69  std::shared_ptr<data> data_;
70  };
71  }
72 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::drawing::brush class.
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes...
Definition: solid_brush.h:30
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Contains xtd::drawing::color class.
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Definition: brush.h:33