xtd 0.2.0
shadow.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include <xtd/drawing/color>
7 #include <xtd/drawing/point>
8 #include <xtd/iequatable>
9 #include <xtd/object>
10 #include <xtd/ustring>
11 
13 namespace xtd {
15  namespace forms {
27  class forms_export_ shadow : public object, public xtd::iequatable<shadow> {
28  struct data;
29 
30  public:
32 
42  shadow();
46  shadow(int32 x, int32 y);
51  shadow(int32 x, int32 y, int32 radius);
55  shadow(int32 x, int32 y, const xtd::drawing::color& color);
60  shadow(int32 x, int32 y, int32 radius, const xtd::drawing::color& color);
63  explicit shadow(const xtd::drawing::point& offset);
67  shadow(const xtd::drawing::point& offset, int32 radius);
71  shadow(const xtd::drawing::point& offset, const xtd::drawing::color& color);
76  shadow(const xtd::drawing::point& offset, int32 radius, const xtd::drawing::color& color);
78 
80  shadow(const shadow&);
81  shadow(shadow&&) = default;
82  shadow& operator =(const shadow&);
84 
86 
90  const xtd::drawing::color& color() const noexcept;
94  shadow& color(const xtd::drawing::color& value) noexcept;
97  const xtd::drawing::point& offset() const noexcept;
101  shadow& offset(const xtd::drawing::point& value) noexcept;
104  int32 radius() const noexcept;
108  shadow& radius(int32 value) noexcept;
111  int32 x() const noexcept;
115  shadow& x(int32 value) noexcept;
118  int32 y() const noexcept;
122  shadow& y(int32 value) noexcept;
124 
126 
128  bool equals(const shadow& other) const noexcept override;
130 
131  private:
132  std::shared_ptr<data> data_;
133  };
134  }
135 }
136 
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Specifies that the top edge of the control is defined.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies that the left edge of the control is defined.
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
The operating system is other.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Represents a shadow within a xtd::forms::shadow_label control.
Definition: shadow.h:27
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13