xtd 0.2.0
message_notifier_button.h
1 #pragma once
2 #include "component.h"
3 #include <xtd/iequatable>
4 #include <xtd/ustring>
5 
6 // TODO: documentation
7 namespace xtd {
8  namespace forms {
9  class message_notifier_button : public xtd::forms::component, public xtd::iequatable<message_notifier_button> {
10  public:
11  message_notifier_button() = default;
12  explicit message_notifier_button(const xtd::ustring& text) : text_(text) {}
13 
14  const xtd::ustring& text() const noexcept {
15  return text_;
16  }
17 
18  message_notifier_button& text(const xtd::ustring& value) {
19  text_ = value;
20  return *this;
21  }
22 
23  //TODO:
24  bool equals(const message_notifier_button& other) const noexcept override {
25  return text_ == other.text_;
26  }
27 
28  private:
29  xtd::ustring text_;
30  };
31 
32  using message_notifier_button_ref = std::reference_wrapper<message_notifier_button>;
33  }
34 }
35 
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
The operating system is other.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::component class.
Definition: message_notifier_button.h:9
Provides the base implementation and enables object sharing between applications. ...
Definition: component.h:23