Numworks Epsilon  1.4.1
Graphing Calculator Operating System
box_banner_view.cpp
Go to the documentation of this file.
1 #include "box_banner_view.h"
2 
3 namespace Statistics {
4 
6  m_calculationName(KDText::FontSize::Small, I18n::Message::Minimum, 0.0f, 0.5f, KDColorBlack, Palette::GreyMiddle),
7  m_calculationValue(KDText::FontSize::Small, 1.0f, 0.5f, KDColorBlack, Palette::GreyMiddle)
8 {
9 }
10 
11 int BoxBannerView::numberOfSubviews() const {
12  return 2;
13 }
14 
15 TextView * BoxBannerView::textViewAtIndex(int index) const {
16  const TextView * textViews[2] = {&m_calculationName, &m_calculationValue};
17  return (TextView *)textViews[index];
18 }
19 
20 MessageTextView * BoxBannerView::messageTextViewAtIndex(int index) const {
21  if (index == 0) {
22  return (MessageTextView *)&m_calculationName;
23  }
24  return nullptr;
25 }
26 
27 }
Definition: i18n.h:6
Definition: text.h:8
constexpr KDColor KDColorBlack
Definition: color.h:41
Definition: palette.h:6