xtd 0.2.0
border_radius.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "length.hpp"
7#include <xtd/iequatable>
8#include <xtd/string>
9
11namespace xtd {
13 namespace forms {
15 namespace style_sheets {
33 class forms_export_ border_radius : public xtd::iequatable<border_radius>, public xtd::object {
34 public:
36
39 static const border_radius empty;
41
43
46 border_radius() = default;
47
52
61
63 border_radius(const border_radius&) = default;
64 border_radius& operator =(const border_radius&) = default;
66
68
77 void all(xtd::forms::style_sheets::length all) noexcept;
78
87
91 xtd::forms::style_sheets::length top_left() const noexcept;
96
105
109 xtd::forms::style_sheets::length top_right() const noexcept;
114
116
118
123 bool equals(const xtd::object& obj) const noexcept override;
127 bool equals(const border_radius& other) const noexcept override;
128
131 xtd::size get_hash_code() const noexcept override;
133
134 private:
135 bool all_ = true;
136 xtd::forms::style_sheets::length top_left_ {0};
138 xtd::forms::style_sheets::length bottom_left_ {0};
139 xtd::forms::style_sheets::length bottom_right_ {0};
140 };
141 }
142 }
143}
border_radius(xtd::forms::style_sheets::length all)
Initializes a new instance of the xtd::forms::style_sheets::border_radius class using the supplied xt...
xtd::forms::style_sheets::length bottom_left() const noexcept
Gets the xtd::forms::style_sheets::border_radius value for the bottom_left edge.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
static const border_radius empty
Provides an empty xtd::forms::style_sheets::border_radius object.
Definition border_radius.hpp:39
border_radius(xtd::forms::style_sheets::length top_left, xtd::forms::style_sheets::length top_right, xtd::forms::style_sheets::length bottom_right, xtd::forms::style_sheets::length bottom_left)
Initializes a new instance of the xtd::forms::style_sheets::border_radius class using a separate xtd:...
border_radius()=default
Initializes a new instance of the xtd::forms::style_sheets::border_radius class.
xtd::forms::style_sheets::length top_left() const noexcept
Gets the xtd::forms::style_sheets::border_radius value for the top_left edge.
xtd::forms::style_sheets::length all() const noexcept
Gets the xtd::forms::style_sheets::border_radius value for all the edges.
xtd::forms::style_sheets::length bottom_right() const noexcept
Gets the xtd::forms::style_sheets::border_radius value for the bottom_right edge.
xtd::forms::style_sheets::length top_right() const noexcept
Gets the xtd::forms::style_sheets::border_radius value for the top_right edge.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::form...
Definition length.hpp:77
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
@ 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
Contains xtd::forms::style_sheets::length class.
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