xtd - Reference Guide 0.2.0
Go to the documentation of this file.
1 #pragma once
5 #include "../drawing_export.h"
6 #include "brush.h"
7 #include "color.h"
10 namespace xtd {
12  namespace drawing {
29  class drawing_export_ solid_brush final : public xtd::drawing::brush {
30  public:
36  explicit solid_brush(const xtd::drawing::color& color) {this->color(color);}
40  solid_brush(const solid_brush& value);
41  solid_brush& operator =(const solid_brush& value);
42  bool operator ==(const solid_brush& value) const {return data_->color_ == value.data_->color_;}
43  bool operator !=(const solid_brush& value) const {return !operator ==(value);}
51  const xtd::drawing::color& color() const noexcept {return data_->color_;}
58  private:
59  solid_brush();
60  struct data {
61  drawing::color color_;
62  };
63  std::shared_ptr<data> data_ = std::make_shared<data>();
64  };
65  }
66 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::drawing::brush class.
const xtd::drawing::color & color() const noexcept
Gets the color of this xtd::drawing::solid_brush object.
Definition: solid_brush.h:51
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:44
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes...
Definition: solid_brush.h:29
solid_brush(const xtd::drawing::color &color)
Initializes a new xtd::drawing::solid_brush object of the specified color.
Definition: solid_brush.h:36
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:50