xtd 0.2.0
brush.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.hpp"
6#include <xtd/iequatable>
7#include <xtd/object>
8#include <xtd/string>
9#include <cstdint>
10#include <memory>
11#include <ostream>
12
14namespace xtd {
16 namespace drawing {
33 class drawing_export_ brush : public xtd::object, public xtd::iequatable<brush> {
34 struct data;
35
36 public:
38 brush(const brush& value);
39 brush& operator =(const brush& value);
40 ~brush();
42
44
48 intptr handle() const noexcept;
50
52
57 bool equals(const xtd::object& obj) const noexcept override;
61 bool equals(const brush& other) const noexcept override;
62
65 xtd::size get_hash_code() const noexcept override;
66
69 xtd::string to_string() const noexcept override;
71
72 protected:
74
79
81
85 void set_native_brush(intptr brush);
87
88 private:
89 xtd::sptr<data> data_;
90 };
91 }
92}
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.hpp:33
intptr handle() const noexcept
Gets the handle of the brush.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31