xtd 0.2.0
shadow.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include <xtd/drawing/color>
7#include <xtd/drawing/point>
8#include <xtd/iequatable>
9#include <xtd/object>
10#include <xtd/string>
11
13namespace xtd {
15 namespace forms {
29 class forms_export_ shadow : public object, public xtd::iequatable<shadow> {
30 struct data;
31
32 public:
34
80
82 shadow(const shadow&);
83 shadow(shadow&&) = default;
84 shadow& operator =(const shadow&);
86
88
92 const xtd::drawing::color& color() const noexcept;
96 shadow& color(const xtd::drawing::color& value) noexcept;
99 const xtd::drawing::point& offset() const noexcept;
103 shadow& offset(const xtd::drawing::point& value) noexcept;
106 int32 radius() const noexcept;
110 shadow& radius(int32 value) noexcept;
113 int32 x() const noexcept;
117 shadow& x(int32 value) noexcept;
120 int32 y() const noexcept;
124 shadow& y(int32 value) noexcept;
126
128
133 bool equals(const xtd::object& obj) const noexcept override;
137 bool equals(const shadow& other) const noexcept override;
138
141 xtd::size get_hash_code() const noexcept override;
143
144 private:
145 xtd::sptr<data> data_;
146 };
147 }
148}
149
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
int32 y() const noexcept
Gets the shadow offset y in pixels.
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, const xtd::drawing::color &color)
Initializes a new instance of the xtd::forms::shadow class with the specified offset point,...
shadow()
Initializes a new instance of the xtd::forms::shadow class.
const xtd::drawing::color & color() const noexcept
Gets the shadow color.
int32 x() const noexcept
Gets the shadow offset x in pixels.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
shadow(int32 x, int32 y, const xtd::drawing::color &color)
Initializes a new instance of the xtd::forms::shadow class with the specified offset x,...
shadow(const xtd::drawing::point &offset, int32 radius)
Initializes a new instance of the xtd::forms::shadow class with the specified offset point,...
shadow(const xtd::drawing::point &offset, int32 radius, const xtd::drawing::color &color)
Initializes a new instance of the xtd::forms::shadow class with the specified offset point,...
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
shadow(int32 x, int32 y, int32 radius, const xtd::drawing::color &color)
Initializes a new instance of the xtd::forms::shadow class with the specified offset x,...
shadow(int32 x, int32 y)
Initializes a new instance of the xtd::forms::shadow class with the specified offset x,...
int32 radius() const noexcept
Gets the shadow blurring radius in pixels.
const xtd::drawing::point & offset() const noexcept
Gets the shadow offset in pixels.
shadow(int32 x, int32 y, int32 radius)
Initializes a new instance of the xtd::forms::shadow class with the specified offset x,...
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
object()=default
Create a new instance of the ultimate base class object.
Contains forms_export_ keyword.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
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 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
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54