xtd - Reference Guide 0.2.0
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 {
28  class drawing_export_ texture_brush final : public brush {
29  public:
31 
33  explicit texture_brush(const drawing::image& image) {this->image(image);}
35 
37  texture_brush(const texture_brush& value);
38  texture_brush& operator =(const texture_brush& value);
39  bool operator ==(const texture_brush& value) const {return data_->image_ == value.data_->image_;}
40  bool operator !=(const texture_brush& value) const {return !operator ==(value);}
42 
44 
46  const drawing::image& image() const {return data_->image_;}
47  texture_brush& image(const drawing::image& image);
49 
50  private:
51  texture_brush();
52  struct data {
53  drawing::image image_;
54  };
55  std::shared_ptr<data> data_ = std::make_shared<data>();
56  };
57  }
58 }
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:47
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Definition: brush.h:50
Each property of the xtd::drawing::texture_brush class is a xtd::drawing::brush object that uses an i...
Definition: texture_brush.h:28