Files
Upsilon/apps/statistics/histogram_banner_view.cpp
Émilie Feral 4bf9696eb2 [apps] Change banner color
Change-Id: I9e991f16d570273ff65a94b1b4761324f115899c
2017-01-27 11:59:32 +01:00

25 lines
673 B
C++

#include "histogram_banner_view.h"
#include "../constant.h"
#include <assert.h>
#include <poincare.h>
namespace Statistics {
HistogramBannerView::HistogramBannerView() :
m_intervalView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
m_sizeView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
m_frequencyView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle)
{
}
int HistogramBannerView::numberOfSubviews() const {
return 3;
}
TextView * HistogramBannerView::textViewAtIndex(int i) {
TextView * textViews[3] = {&m_intervalView, &m_sizeView, &m_frequencyView};
return textViews[i];
}
}