xtd 0.2.0
Loading...
Searching...
No Matches
message_notifier_button.h
1#pragma once
2#include "component.h"
3#include <xtd/iequatable>
4#include <xtd/string>
5
6// TODO: documentation
7namespace 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::string& text) : text_(text) {}
13
14 const xtd::string& text() const noexcept {
15 return text_;
16 }
17
19 text_ = value;
20 return *this;
21 }
22
23 //TODO:
24 using object::equals;
25 bool equals(const message_notifier_button& other) const noexcept override {
26 return text_ == other.text_;
27 }
28
29 private:
30 xtd::string text_;
31 };
32
33 using message_notifier_button_ref = std::reference_wrapper<message_notifier_button>;
34 }
35}
36
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides the base implementation and enables object sharing between applications.
Definition component.h:25
Definition message_notifier_button.h:9
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.
Contains xtd::forms::component class.
@ other
The operating system is other.
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
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