xtd 0.2.0
Loading...
Searching...
No Matches
link_area.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include <xtd/iequatable>
7#include <xtd/object>
8#include <xtd/string>
9
11namespace xtd {
13 namespace forms {
26 forms_export_ struct link_area : public object, public xtd::iequatable<link_area> {
27 public:
29
34 link_area(size_t start, size_t length) noexcept;
36
38 link_area() = default;
39 link_area(link_area&&) = default;
40 link_area(const link_area&) = default;
41 link_area& operator =(const link_area&) = default;
43
45
49 bool is_empty() const noexcept;
50
54 size_t length() const noexcept;
59 link_area& length(size_t value) noexcept;
60
64 size_t start() const noexcept;
69 link_area& start(size_t value) noexcept;
71
75 using object::equals;
76 bool equals(const link_area&) const noexcept override;
77 xtd::string to_string() const noexcept override;
79
80 private:
81 size_t start_ = 0;
82 size_t length_ = 0;
83 };
84 }
85}
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10