xtd 0.2.0
Loading...
Searching...
No Matches
solid_brush.h
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.h"
6#include "brush.h"
7#include "color.h"
8#include <xtd/iequatable>
9
11namespace xtd {
13 namespace drawing {
30 class drawing_export_ solid_brush final : public xtd::drawing::brush, public xtd::iequatable<solid_brush> {
31 struct data;
32
33 public:
35
41
43 solid_brush(const solid_brush& value);
44 solid_brush& operator =(const solid_brush& value);
46
48
52 const xtd::drawing::color& color() const noexcept;
56 xtd::drawing::solid_brush& color(const xtd::drawing::color& value) noexcept;
58
60
62 using brush::equals;
63 bool equals(const solid_brush& value) const noexcept override;
65
66 private:
68
69 xtd::sptr<data> data_;
70 };
71 }
72}
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.h:33
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.h:30
solid_brush(const xtd::drawing::color &color)
Initializes a new xtd::drawing::solid_brush object of the specified color.
const xtd::drawing::color & color() const noexcept
Gets the color of this xtd::drawing::solid_brush object.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Contains xtd::drawing::color class.
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
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
Contains xtd::drawing::brush class.