xtd 0.2.0
border_radius.h
Go to the documentation of this file.
1 #pragma once
5 #include "../../forms_export.h"
6 #include "length.h"
7 #include <xtd/iequatable>
8 #include <xtd/ustring>
9 
11 namespace 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 
71  xtd::forms::style_sheets::length all() const noexcept;
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};
124  xtd::forms::style_sheets::length top_right_ {0};
125  xtd::forms::style_sheets::length bottom_left_ {0};
126  xtd::forms::style_sheets::length bottom_right_ {0};
127  };
128  }
129  }
130 }
Contains xtd::forms::style_sheets::length class.
The radius is used to add rounded borders to an element.
Definition: border_radius.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static const border_radius empty
Provides an empty xtd::forms::style_sheets::border_radius object.
Definition: border_radius.h:37
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
The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::form...
Definition: length.h:75
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13