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/ustring>
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::ustring& text) : text_(text) {}
13
14 const xtd::ustring& text() const noexcept {
15 return text_;
16 }
17
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
Provides the base implementation and enables object sharing between applications.
Definition component.h:23
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:18
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
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