xtd 0.2.0
Loading...
Searching...
No Matches
link_area.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include <xtd/iequatable>
7#include <xtd/object>
8#include <xtd/ustring>
9
11namespace xtd {
13 namespace forms {
24 forms_export_ struct link_area : public object, public xtd::iequatable<link_area> {
25 public:
27
32 link_area(size_t start, size_t length) noexcept;
34
36 link_area() = default;
37 link_area(link_area&&) = default;
38 link_area(const link_area&) = default;
39 link_area& operator =(const link_area&) = default;
41
43
47 bool is_empty() const noexcept;
48
52 size_t length() const noexcept;
57 link_area& length(size_t value) noexcept;
58
62 size_t start() const noexcept;
67 link_area& start(size_t value) noexcept;
69
73 bool equals(const link_area&) const noexcept override;
74 xtd::ustring to_string() const noexcept override;
76
77 private:
78 size_t start_ = 0;
79 size_t length_ = 0;
80 };
81 }
82}
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
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