Files
Upsilon/apps/statistics/histogram_banner_view.cpp
Émilie Feral 8f1d37c28c [escher] Add a cursor to text fields
Change-Id: Ib4a80a3c6d4b5d76cb56645275e8ecc6d69528ca
2017-03-08 15:42:14 +01:00

25 lines
697 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) const {
const TextView * textViews[3] = {&m_intervalView, &m_sizeView, &m_frequencyView};
return (TextView *)textViews[i];
}
}