xtd 0.2.0
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 shadow(const shadow&) = default;
58 shadow& operator =(const shadow&) = default;
60
62
66 const xtd::drawing::color& color() const noexcept;
69 void color(const xtd::drawing::color& value) noexcept;
72 const xtd::drawing::point& offset() const noexcept;
75 void offset(const xtd::drawing::point& value) noexcept;
78 int32 radius() const noexcept;
81 void radius(int32 value) noexcept;
83
85
90 bool equals(const xtd::object& obj) const noexcept override;
94 bool equals(const shadow& other) const noexcept override;
95
98 xtd::size get_hash_code() const noexcept override;
100
101 private:
102 xtd::drawing::color color_;
103 xtd::drawing::point offset_;
104 int32 radius_ = 0;
105 };
106 }
107 }
108}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
shadow()=default
Initializes a new instance of the xtd::forms::style_sheets::shadow class.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
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,...
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
const xtd::drawing::point & offset() const noexcept
Gets the shadow offset in pixels.
int32 radius() const noexcept
Gets the shadow blurring radius in pixels.
const xtd::drawing::color & color() const noexcept
Gets the shadow color.
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:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains forms_export_ keyword.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
@ size
Specifies that both the width and height property values of the control are defined.
Definition bounds_specified.hpp:36
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