mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
24 lines
771 B
C++
24 lines
771 B
C++
#include "banner_view.h"
|
|
|
|
namespace Regression {
|
|
|
|
BannerView::BannerView() :
|
|
m_regressionTypeView(KDText::FontSize::Small, nullptr, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
|
|
m_slopeView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
|
|
m_yInterceptView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
|
|
m_xView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
|
|
m_yView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle)
|
|
{
|
|
}
|
|
|
|
int BannerView::numberOfSubviews() const {
|
|
return 5;
|
|
}
|
|
|
|
TextView * BannerView::textViewAtIndex(int i) {
|
|
TextView * textViews[5] = {&m_regressionTypeView, &m_slopeView, &m_yInterceptView, &m_xView, &m_yView};
|
|
return textViews[i];
|
|
}
|
|
|
|
}
|