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