Represents a shadow within a xtd::forms::shadow_label control.
Public Constructors | |
| shadow () | |
| Initializes a new instance of the xtd::forms::shadow class. | |
| shadow (xtd::int32 x, xtd::int32 y) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset x, and offset y. | |
| shadow (xtd::int32 x, xtd::int32 y, xtd::int32 radius) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset x, offset y, and radius. | |
| shadow (xtd::int32 x, xtd::int32 y, const xtd::drawing::color &color) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset x, offset y and color. | |
| shadow (xtd::int32 x, xtd::int32 y, xtd::int32 radius, const xtd::drawing::color &color) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset x, offset y, and color. | |
| shadow (const xtd::drawing::point &offset) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset point. | |
| shadow (const xtd::drawing::point &offset, xtd::int32 radius) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset point, and radius. | |
| shadow (const xtd::drawing::point &offset, const xtd::drawing::color &color) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset point, and color. | |
| shadow (const xtd::drawing::point &offset, xtd::int32 radius, const xtd::drawing::color &color) | |
| Initializes a new instance of the xtd::forms::shadow class with the specified offset point, radius, and color. | |
Public Properties | |
| auto | color () const noexcept -> const xtd::drawing::color & |
| Gets the shadow color. | |
| auto | color (const xtd::drawing::color &value) noexcept -> shadow & |
| Sets the shadow color. | |
| auto | offset () const noexcept -> const xtd::drawing::point & |
| Gets the shadow offset in pixels. | |
| auto | offset (const xtd::drawing::point &value) noexcept -> shadow & |
| Sets the shadow offset point in pixels. | |
| auto | radius () const noexcept -> xtd::int32 |
| Gets the shadow blurring radius in pixels. | |
| auto | radius (xtd::int32 value) noexcept -> shadow & |
| Sets the shadow blurring radius in pixels. | |
| auto | x () const noexcept -> xtd::int32 |
| Gets the shadow offset x in pixels. | |
| auto | x (xtd::int32 value) noexcept -> shadow & |
| Sets the shadow offset x in pixels. | |
| auto | y () const noexcept -> xtd::int32 |
| Gets the shadow offset y in pixels. | |
| auto | y (xtd::int32 value) noexcept -> shadow & |
| Sets the shadow offset y in pixels. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const shadow &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| virtual auto | equals (const shadow &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| xtd::forms::shadow::shadow | ( | ) |
Initializes a new instance of the xtd::forms::shadow class.
| Property | Initial Value |
|---|---|
| color | xtd::application::style_sheet().system_colors().shadow_text() |
| offset x | 2 |
| offset y | 2 |
| radius | 0 |
| xtd::forms::shadow::shadow | ( | xtd::int32 | x, |
| xtd::int32 | y ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset x, and offset y.
| x | The shadow offset x in pixels. |
| y | The shadow offset y in pixels. |
| xtd::forms::shadow::shadow | ( | xtd::int32 | x, |
| xtd::int32 | y, | ||
| xtd::int32 | radius ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset x, offset y, and radius.
| x | The shadow offset x in pixels. |
| y | The shadow offset y in pixels. |
| radius | The shadow blurring radius. |
| xtd::forms::shadow::shadow | ( | xtd::int32 | x, |
| xtd::int32 | y, | ||
| const xtd::drawing::color & | color ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset x, offset y and color.
| x | The shadow offset x in pixels. |
| y | The shadow offset y in pixels. |
| xtd::forms::shadow::shadow | ( | xtd::int32 | x, |
| xtd::int32 | y, | ||
| xtd::int32 | radius, | ||
| const xtd::drawing::color & | color ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset x, offset y, and color.
| x | The shadow offset x in pixels. |
| y | The shadow offset y in pixels. |
| radius | The shadow blurring radius. |
|
explicit |
Initializes a new instance of the xtd::forms::shadow class with the specified offset point.
| offset | The shadow offset point in pixels. |
| xtd::forms::shadow::shadow | ( | const xtd::drawing::point & | offset, |
| xtd::int32 | radius ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset point, and radius.
| offset | The shadow offset point in pixels. |
| radius | The shadow blurring radius. |
| xtd::forms::shadow::shadow | ( | const xtd::drawing::point & | offset, |
| const xtd::drawing::color & | color ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset point, and color.
| offset | The shadow offset point in pixels. |
| color | The shadow color. |
| xtd::forms::shadow::shadow | ( | const xtd::drawing::point & | offset, |
| xtd::int32 | radius, | ||
| const xtd::drawing::color & | color ) |
Initializes a new instance of the xtd::forms::shadow class with the specified offset point, radius, and color.
| offset | The shadow offset point in pixels. |
| radius | The shadow blurring radius. |
| color | The shadow color. |
|
nodiscardnoexcept |
Gets the shadow color.
|
noexcept |
Sets the shadow color.
| value | The shadow color. |
|
nodiscardnoexcept |
Gets the shadow offset in pixels.
|
noexcept |
Sets the shadow offset point in pixels.
| value | The shadow offset point. |
|
nodiscardnoexcept |
Gets the shadow blurring radius in pixels.
|
noexcept |
Sets the shadow blurring radius in pixels.
| value | The shadow blurring radius. |
|
nodiscardnoexcept |
Gets the shadow offset x in pixels.
|
noexcept |
Sets the shadow offset x in pixels.
| value | The shadow offset x. |
|
nodiscardnoexcept |
Gets the shadow offset y in pixels.
|
noexcept |
Sets the shadow offset y in pixels.
| value | The shadow offset y. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.