mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
24 lines
471 B
C++
24 lines
471 B
C++
#include "banner_view.h"
|
|
|
|
namespace Regression {
|
|
|
|
BannerView::BannerView() :
|
|
m_regressionTypeView(nullptr, 0.5f, 0.5f),
|
|
m_slopeView(0.5f, 0.5f),
|
|
m_yInterceptView(0.5f, 0.5f),
|
|
m_xView(0.5f, 0.5f),
|
|
m_yView(0.5f, 0.5f)
|
|
{
|
|
}
|
|
|
|
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];
|
|
}
|
|
|
|
}
|