xtd 1.0.0
Loading...
Searching...
No Matches
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 xtd::object, public xtd::iequatable<shadow> {
30 struct data;
31
32 public:
34
80
82 shadow(const shadow&);
83 shadow& operator =(const shadow&);
85
87
91 [[nodiscard]] auto color() const noexcept -> const xtd::drawing::color&;
95 auto color(const xtd::drawing::color& value) noexcept -> shadow&;
96
99 [[nodiscard]] auto offset() const noexcept -> const xtd::drawing::point&;
103 auto offset(const xtd::drawing::point& value) noexcept -> shadow&;
104
107 [[nodiscard]] auto radius() const noexcept -> xtd::int32;
111 auto radius(xtd::int32 value) noexcept -> shadow&;
112
115 [[nodiscard]] auto x() const noexcept -> xtd::int32;
119 auto x(xtd::int32 value) noexcept -> shadow&;
120
123 [[nodiscard]] auto y() const noexcept -> xtd::int32;
127 auto y(xtd::int32 value) noexcept -> shadow&;
129
131
136 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
140 [[nodiscard]] auto equals(const shadow& other) const noexcept -> bool override;
141
144 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
146
147 private:
148 xtd::sptr<data> data_;
149 };
150 }
151}
152
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:52
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,...
shadow(const xtd::drawing::point &offset)
Initializes a new instance of the xtd::forms::shadow class with the specified offset point.
shadow(xtd::int32 x, xtd::int32 y)
Initializes a new instance of the xtd::forms::shadow class with the specified offset x,...
auto offset() const noexcept -> const xtd::drawing::point &
Gets the shadow offset in pixels.
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,...
auto y() const noexcept -> xtd::int32
Gets the shadow offset y in pixels.
shadow()
Initializes a new instance of the xtd::forms::shadow class.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
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,...
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.
shadow(const xtd::drawing::point &offset, xtd::int32 radius)
Initializes a new instance of the xtd::forms::shadow class with the specified offset point,...
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,...
auto radius() const noexcept -> xtd::int32
Gets the shadow blurring radius in pixels.
auto x() const noexcept -> xtd::int32
Gets the shadow offset x in pixels.
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,...
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
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
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 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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54