xtd 1.0.0
Loading...
Searching...
No Matches
shadow.hpp
Go to the documentation of this file.
1
4#pragma once
6#include <xtd/drawing/color>
7#include <xtd/drawing/point>
8#include <xtd/iequatable>
9#include <xtd/string>
10
12namespace xtd {
14 namespace forms {
16 namespace style_sheets {
34 class forms_export_ shadow : public xtd::iequatable<shadow>, public xtd::object {
35 public:
37
40 static const shadow empty;
42
44
47 shadow() = default;
48
55
57
61 [[nodiscard]] auto color() const noexcept -> const xtd::drawing::color&;
64 auto color(const xtd::drawing::color& value) noexcept -> void;
67 [[nodiscard]] auto offset() const noexcept -> const xtd::drawing::point&;
70 auto offset(const xtd::drawing::point& value) noexcept -> void;
73 [[nodiscard]] auto radius() const noexcept -> xtd::int32;
76 auto radius(xtd::int32 value) noexcept -> void;
78
80
85 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
89 [[nodiscard]] auto equals(const shadow& other) const noexcept -> bool override;
90
93 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
95
96 private:
97 xtd::drawing::color color_;
98 xtd::drawing::point offset_;
99 int32 radius_ = 0;
100 };
101 }
102 }
103}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:52
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto color() const noexcept -> const xtd::drawing::color &
Gets the shadow color.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto radius() const noexcept -> xtd::int32
Gets the shadow blurring radius in pixels.
shadow()=default
Initializes a new instance of the xtd::forms::style_sheets::shadow class.
auto offset() const noexcept -> const xtd::drawing::point &
Gets the shadow offset in pixels.
shadow(const xtd::drawing::point &offset, int32 radius, const xtd::drawing::color &color)
Initializes a new instance of the xtd::forms::style_sheets::shadow class with the offset point,...
static const shadow empty
Provides a xtd::forms::style_sheets::shadow object with no xtd::forms::style_sheets::shadow.
Definition shadow.hpp:40
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains forms_export_ keyword.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms::style_sheets namespace contains various properties, states, and subcontrols that make...
Definition background_image.hpp:21
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54