xtd 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 #include <xtd/iequatable>
9 
11 namespace xtd {
13  namespace drawing {
29  class drawing_export_ texture_brush final : public brush, public xtd::iequatable<texture_brush> {
30  struct data;
31 
32  public:
34 
38  explicit texture_brush(const drawing::image& image);
40 
42  texture_brush(const texture_brush& value);
43  texture_brush& operator =(const texture_brush& value);
45 
47 
51  const drawing::image& image() const noexcept;
54  texture_brush& image(const drawing::image& image);
56 
58 
60  using brush::equals;
61  bool equals(const texture_brush& value) const noexcept override;
63 
64  private:
65  texture_brush();
66 
67  std::shared_ptr<data> data_;
68  };
69  }
70 }
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.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Definition: brush.h:33
Each property of the xtd::drawing::texture_brush class is a xtd::drawing::brush object that uses an i...
Definition: texture_brush.h:29