xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
texture_brush.h
Go to the documentation of this file.
1 #pragma once
5 #include "../drawing_export.h"
6 #include "brush.h"
7 #include "image.h"
8 
10 namespace xtd {
12  namespace drawing {
22  class drawing_export_ texture_brush final : public brush {
23  public:
24  texture_brush(const drawing::image& image) {this->image(image);}
25 
27  texture_brush(const texture_brush& value);
28  texture_brush& operator=(const texture_brush& value);
29  bool operator==(const texture_brush& value) const {return data_->image_ == value.data_->image_;}
30  bool operator!=(const texture_brush& value) const {return !operator==(value);}
32 
33  const drawing::image& image() const {return data_->image_;}
34  texture_brush& image(const drawing::image& image);
35 
36  private:
37  texture_brush();
38  struct data {
39  drawing::image image_;
40  };
41  std::shared_ptr<data> data_ = std::make_shared<data>();
42  };
43  }
44 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::drawing::brush class.
Contains xtd::drawing::image class.
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:34
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Definition: brush.h:27
Each property of the xtd::drawing::texture_brush class is a xtd::drawing::brush object that uses an i...
Definition: texture_brush.h:22