FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
UIText.cpp
Go to the documentation of this file.
1#include "UIText.h"
2
4 UIText::UIText(const std::string& text, const Variant& variant)
5 : text(text), variant(variant) {}
6
8 if (this != &other) {
9 text = other.text;
10 variant = other.variant;
11 }
12
13 return *this;
14 }
15
16 UIText::UIText(UIText&& other) noexcept : text(std::move(other.text)), variant(other.variant) {}
17
18 UIText& UIText::operator=(UIText&& other) noexcept {
19 if (this != &other) {
20 text = std::move(other.text);
21 variant = other.variant;
22 }
23
24 return *this;
25 }
26} // namespace business_logic::components
The UI renderable text primitive.
Definition UIText.h:14
std::string text
The text to display.
Definition UIText.h:52
Variant variant
The visual display variant of the text.
Definition UIText.h:57
UIText(const std::string &text, const Variant &variant)
Constructor.
Definition UIText.cpp:4
Variant
The visual display variant of the text.
Definition UIText.h:19
UIText & operator=(const UIText &)
Definition UIText.cpp:7
UI primitives and components to be rendered as part of the UI.
Definition UIText.cpp:3