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
3
namespace
business_logic::components
{
4
UIText::UIText
(
const
std::string& text,
const
Variant
& variant)
5
: text(text), variant(variant) {}
6
7
UIText
&
UIText::operator=
(
const
UIText
& other) {
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
UIText.h
business_logic::components::UIText
The UI renderable text primitive.
Definition
UIText.h:14
business_logic::components::UIText::text
std::string text
The text to display.
Definition
UIText.h:52
business_logic::components::UIText::variant
Variant variant
The visual display variant of the text.
Definition
UIText.h:57
business_logic::components::UIText::UIText
UIText(const std::string &text, const Variant &variant)
Constructor.
Definition
UIText.cpp:4
business_logic::components::UIText::Variant
Variant
The visual display variant of the text.
Definition
UIText.h:19
business_logic::components::UIText::operator=
UIText & operator=(const UIText &)
Definition
UIText.cpp:7
business_logic::components
UI primitives and components to be rendered as part of the UI.
Definition
UIText.cpp:3
src
business_logic
components
UIText.cpp
Generated by
1.9.8