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/ustring>
9
11namespace 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
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}
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
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:37
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:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#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