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/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
82 xtd::forms::style_sheets::length bottom_right() const noexcept;
86 void bottom_right(xtd::forms::style_sheets::length bottom_right) noexcept;
87
91 xtd::forms::style_sheets::length top_left() const noexcept;
95 void top_left(xtd::forms::style_sheets::length top_left) noexcept;
96
100 xtd::forms::style_sheets::length bottom_left() const noexcept;
104 void bottom_left(xtd::forms::style_sheets::length bottom_left) noexcept;
105
109 xtd::forms::style_sheets::length top_right() const noexcept;
113 void top_right(xtd::forms::style_sheets::length top_right) noexcept;
114
116
118
120 using object::equals;
121 bool equals(const border_radius& other) const noexcept override;
123
124 private:
125 bool all_ = true;
126 xtd::forms::style_sheets::length top_left_ {0};
128 xtd::forms::style_sheets::length bottom_left_ {0};
129 xtd::forms::style_sheets::length bottom_right_ {0};
130 };
131 }
132 }
133}
The radius is used to add rounded borders to an element.
Definition border_radius.h:33
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: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 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:77
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
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