mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
21 lines
506 B
C++
21 lines
506 B
C++
#include "box_banner_view.h"
|
|
|
|
namespace Statistics {
|
|
|
|
BoxBannerView::BoxBannerView() :
|
|
m_calculationName(KDText::FontSize::Small, nullptr, 0.0f, 0.5f, KDColorBlack, Palette::GreyMiddle),
|
|
m_calculationValue(KDText::FontSize::Small, 1.0f, 0.5f, KDColorBlack, Palette::GreyMiddle)
|
|
{
|
|
}
|
|
|
|
int BoxBannerView::numberOfSubviews() const {
|
|
return 2;
|
|
}
|
|
|
|
TextView * BoxBannerView::textViewAtIndex(int index) {
|
|
TextView * textViews[2] = {&m_calculationName, &m_calculationValue};
|
|
return textViews[index];
|
|
}
|
|
|
|
}
|