mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
20 lines
563 B
C++
20 lines
563 B
C++
#include "box_banner_view.h"
|
|
#include <assert.h>
|
|
|
|
namespace Statistics {
|
|
|
|
BoxBannerView::BoxBannerView() :
|
|
m_seriesName(Font(), 0.0f, 0.5f, TextColor(), BackgroundColor()),
|
|
m_calculationName(Font(), I18n::Message::Minimum, 0.0f, 0.5f, TextColor(), BackgroundColor()),
|
|
m_calculationValue(Font(), 1.0f, 0.5f, TextColor(), BackgroundColor())
|
|
{
|
|
}
|
|
|
|
View * BoxBannerView::subviewAtIndex(int index) {
|
|
assert(0 <= index && index < numberOfSubviews());
|
|
View * subviews[] = {&m_seriesName, &m_calculationName, &m_calculationValue};
|
|
return subviews[index];
|
|
}
|
|
|
|
}
|