xtd 0.2.0
lengths.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_ lengths : public xtd::iequatable<lengths>, public xtd::object {
32  public:
34 
37  static const lengths empty;
39 
41 
44  lengths() = default;
45 
50 
59 
61  lengths(const lengths&) = default;
62  lengths& operator =(const lengths&) = 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() const noexcept;
84  void bottom(xtd::forms::style_sheets::length bottom) noexcept;
85 
89  xtd::forms::style_sheets::length left() const noexcept;
93  void left(xtd::forms::style_sheets::length left) noexcept;
94 
98  xtd::forms::style_sheets::length right() const noexcept;
102  void right(xtd::forms::style_sheets::length right) noexcept;
103 
107  xtd::forms::style_sheets::length top() const noexcept;
111  void top(xtd::forms::style_sheets::length top) noexcept;
113 
115 
117  bool equals(const lengths& other) const noexcept override;
118  xtd::ustring to_string() const noexcept override;
120 
121  private:
122  bool all_ = true;
123  xtd::forms::style_sheets::length left_ {0};
127  };
128  }
129  }
130 }
Contains xtd::forms::style_sheets::length class.
static const lengths empty
Provides a xtd::forms::style_sheets::lengths object with no xtd::forms::style_sheets::lengths.
Definition: lengths.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
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 length specifies the length of the borders.
Definition: lengths.h:31
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13