xtd - Reference Guide  0.1.1
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();
25  texture_brush(const drawing::image& image) {this->image(image);}
26 
28  texture_brush(const texture_brush& value);
29  texture_brush& operator=(const texture_brush& value);
30  bool operator==(const texture_brush& value) const {return data_->image_ == value.data_->image_;}
31  bool operator!=(const texture_brush& value) const {return !operator==(value);}
33 
34  const drawing::image& image() const {return data_->image_;}
36 
37  private:
38  struct data {
39  drawing::image image_;
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
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition: image.h:34
Each property of the xtd::drawing::texture_brush class is a xtd::drawing::brush object that uses an i...
Definition: texture_brush.h:22
#define drawing_export_
Define shared library export.
Definition: drawing_export.h:13
Contains xtd::drawing::image class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17