xtd 1.0.0
Loading...
Searching...
No Matches
lengths.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "length.hpp"
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
68 [[nodiscard]] auto all() const noexcept -> xtd::forms::style_sheets::length;
72 auto all(xtd::forms::style_sheets::length all) noexcept -> void;
73
77 [[nodiscard]] auto bottom() const noexcept -> xtd::forms::style_sheets::length;
81 auto bottom(xtd::forms::style_sheets::length bottom) noexcept -> void;
82
86 [[nodiscard]] auto left() const noexcept -> xtd::forms::style_sheets::length;
90 auto left(xtd::forms::style_sheets::length left) noexcept -> void;
91
95 [[nodiscard]] auto right() const noexcept -> xtd::forms::style_sheets::length;
99 auto right(xtd::forms::style_sheets::length right) noexcept -> void;
100
104 [[nodiscard]] auto top() const noexcept -> xtd::forms::style_sheets::length;
108 auto top(xtd::forms::style_sheets::length top) noexcept -> void;
110
112
117 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
121 [[nodiscard]] auto equals(const lengths& other) const noexcept -> bool override;
122
125 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
126
127 [[nodiscard]] auto to_string() const noexcept -> xtd::string override;
129
130 private:
131 bool all_ = true;
132 xtd::forms::style_sheets::length left_ {0};
136 };
137 }
138 }
139}
The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::form...
Definition length.hpp:77
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...
auto right() const noexcept -> xtd::forms::style_sheets::length
Gets the xtd::forms::style_sheets::lengths value for the right edge.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
auto all() const noexcept -> xtd::forms::style_sheets::length
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.
auto bottom() const noexcept -> xtd::forms::style_sheets::length
Gets the xtd::forms::style_sheets::lengths value for the bottom edge.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto top() const noexcept -> xtd::forms::style_sheets::length
Gets the xtd::forms::style_sheets::lengths value for the top edge.
static const lengths empty
Provides a xtd::forms::style_sheets::lengths object with no xtd::forms::style_sheets::lengths.
Definition lengths.hpp: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...
auto left() const noexcept -> xtd::forms::style_sheets::length
Gets the xtd::forms::style_sheets::lengths value for the left edge.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains forms_export_ keyword.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
Contains xtd::forms::style_sheets::length class.
The xtd::forms::style_sheets namespace contains various properties, states, and subcontrols that make...
Definition background_image.hpp:21
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8