xtd 0.2.0
Loading...
Searching...
No Matches
brush.h
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.h"
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
54 using object::equals;
55 bool equals(const brush& value) const noexcept override;
56
59 xtd::string to_string() const noexcept override;
61
62 protected:
64
69
71
75 void set_native_brush(intptr brush);
77
78 private:
79 xtd::sptr<data> data_;
80 };
81 }
82}
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.h: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.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10