xtd 0.2.0
Loading...
Searching...
No Matches
lengths.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_ lengths : public xtd::iequatable<lengths>, public xtd::object {
34 public:
36
39 static const lengths empty;
41
43
46 lengths() = default;
47
52
61
63 lengths(const lengths&) = default;
64 lengths& operator =(const lengths&) = default;
66
68
77 void all(xtd::forms::style_sheets::length all) noexcept;
78
82 xtd::forms::style_sheets::length bottom() const noexcept;
86 void bottom(xtd::forms::style_sheets::length bottom) noexcept;
87
91 xtd::forms::style_sheets::length left() const noexcept;
95 void left(xtd::forms::style_sheets::length left) noexcept;
96
100 xtd::forms::style_sheets::length right() const noexcept;
104 void right(xtd::forms::style_sheets::length right) noexcept;
105
109 xtd::forms::style_sheets::length top() const noexcept;
113 void top(xtd::forms::style_sheets::length top) noexcept;
115
117
119 using object::equals;
120 bool equals(const lengths& other) const noexcept override;
121 xtd::string to_string() const noexcept override;
123
124 private:
125 bool all_ = true;
126 xtd::forms::style_sheets::length left_ {0};
130 };
131 }
132 }
133}
The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::form...
Definition length.h:77
The length specifies the length of the borders.
Definition lengths.h:33
lengths(xtd::forms::style_sheets::length left, xtd::forms::style_sheets::length top, xtd::forms::style_sheets::length right, xtd::forms::style_sheets::length bottom)
Initializes a new instance of the xtd::forms::style_sheets::lengths class using a separate xtd::forms...
xtd::forms::style_sheets::length all() const noexcept
Gets the xtd::forms::style_sheets::lengths value for all the edges.
lengths()=default
Initializes a new instance of the xtd::forms::style_sheets::lengths class.
static const lengths empty
Provides a xtd::forms::style_sheets::lengths object with no xtd::forms::style_sheets::lengths.
Definition lengths.h:39
lengths(xtd::forms::style_sheets::length all)
Initializes a new instance of the xtd::forms::style_sheets::lengths class using the supplied xtd::for...
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