xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
solid_brush.h
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.h"
6#include "brush.h"
7#include "color.h"
8
10namespace xtd {
12 namespace drawing {
22 class drawing_export_ solid_brush final : public brush {
23 public:
25 solid_brush(const drawing::color& color) {this->color(color);}
26
28 solid_brush(const solid_brush& value);
29 solid_brush& operator=(const solid_brush& value);
30 bool operator==(const solid_brush& value) const {return data_->color_ == value.data_->color_;}
31 bool operator!=(const solid_brush& value) const {return !operator==(value);}
33
34 const drawing::color& color() const {return data_->color_;}
36
37 private:
38 struct data {
39 drawing::color color_;
40 };
41 std::shared_ptr<data> data_ = std::make_shared<data>();
42 };
43 }
44}
Contains xtd::drawing::brush class.
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition: brush.h:27
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:39
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition: solid_brush.h:22
Contains xtd::drawing::color class.
#define drawing_export_
Define shared library export.
Definition: drawing_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17