FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
UITextsRow.cpp
Go to the documentation of this file.
1#include "UITextsRow.h"
2
4 UITextsRow::UITextsRow(const std::vector<UIText>& texts) {
5 this->texts.reserve(texts.size());
6 std::copy(texts.begin(), texts.end(), std::back_inserter(this->texts));
7 }
8
10 if (this != &other) {
11 this->texts = other.texts;
12 }
13
14 return *this;
15 }
16
17 UITextsRow::UITextsRow(UITextsRow&& other) noexcept : texts(std::move(other.texts)) {}
18
20 if (this != &other) {
21 this->texts = std::move(other.texts);
22 }
23
24 return *this;
25 }
26} // namespace business_logic::components
The UI renderable row of UITexts primitive.
Definition UITextsRow.h:15
std::vector< UIText > texts
The texts in this row.
Definition UITextsRow.h:41
UITextsRow(const std::vector< UIText > &texts)
Constructor.
Definition UITextsRow.cpp:4
UITextsRow & operator=(const UITextsRow &)
Definition UITextsRow.cpp:9
UI primitives and components to be rendered as part of the UI.
Definition UIText.cpp:3