xtd 0.2.0
Loading...
Searching...
No Matches
border_radius.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../forms_export.h"
6#include "length.h"
7#include <xtd/iequatable>
8#include <xtd/ustring>
9
11namespace xtd {
13 namespace forms {
15 namespace style_sheets {
31 class forms_export_ border_radius : public xtd::iequatable<border_radius>, public xtd::object {
32 public:
34
37 static const border_radius empty;
39
41
44 border_radius() = default;
45
50
59
61 border_radius(const border_radius&) = default;
62 border_radius& operator =(const border_radius&) = default;
64
66
75 void all(xtd::forms::style_sheets::length all) noexcept;
76
80 xtd::forms::style_sheets::length bottom_right() const noexcept;
84 void bottom_right(xtd::forms::style_sheets::length bottom_right) noexcept;
85
89 xtd::forms::style_sheets::length top_left() const noexcept;
93 void top_left(xtd::forms::style_sheets::length top_left) noexcept;
94
98 xtd::forms::style_sheets::length bottom_left() const noexcept;
102 void bottom_left(xtd::forms::style_sheets::length bottom_left) noexcept;
103
107 xtd::forms::style_sheets::length top_right() const noexcept;
111 void top_right(xtd::forms::style_sheets::length top_right) noexcept;
112
114
116
118 bool equals(const border_radius& other) const noexcept override;
120
121 private:
122 bool all_ = true;
123 xtd::forms::style_sheets::length top_left_ {0};
125 xtd::forms::style_sheets::length bottom_left_ {0};
126 xtd::forms::style_sheets::length bottom_right_ {0};
127 };
128 }
129 }
130}
The radius is used to add rounded borders to an element.
Definition border_radius.h:31
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...
static const border_radius empty
Provides an empty xtd::forms::style_sheets::border_radius object.
Definition border_radius.h:37
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 all() const noexcept
Gets the xtd::forms::style_sheets::border_radius value for all the edges.
The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::form...
Definition length.h:75
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
#define forms_export_
Define shared library export.
Definition forms_export.h:13
Contains xtd::forms::style_sheets::length class.
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