Files
Upsilon/apps/statistics/histogram_banner_view.cpp
Émilie Feral f51ae5db12 [kandinsky] Introduce two fonts: small font and large font
Change-Id: I502dfa88d627b09ac5af76155140af63547025cd
2017-01-27 11:14:01 +01:00

25 lines
568 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),
m_sizeView(KDText::FontSize::Small, 0.5f, 0.5f),
m_frequencyView(KDText::FontSize::Small, 0.5f, 0.5f)
{
}
int HistogramBannerView::numberOfSubviews() const {
return 3;
}
TextView * HistogramBannerView::textViewAtIndex(int i) {
TextView * textViews[3] = {&m_intervalView, &m_sizeView, &m_frequencyView};
return textViews[i];
}
}