xtd 0.2.0
Loading...
Searching...
No Matches
shadow.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../forms_export.h"
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
53 shadow(const xtd::drawing::point& offset, int32 radius, const xtd::drawing::color& color);
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
87 using object::equals;
88 bool equals(const shadow& other) const noexcept override;
90
91 private:
92 xtd::drawing::color color_;
93 xtd::drawing::point offset_;
94 int32 radius_ = 0;
95 };
96 }
97 }
98}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:54
The style specifies the shadow of text and elements.
Definition shadow.h:34
shadow()=default
Initializes a new instance of the xtd::forms::style_sheets::shadow class.
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,...
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.h:40
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define forms_export_
Define shared library export.
Definition forms_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10