mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
36 lines
846 B
C++
36 lines
846 B
C++
#include "xy_banner_view.h"
|
|
#include <assert.h>
|
|
|
|
namespace Shared {
|
|
|
|
XYBannerView::XYBannerView(
|
|
Responder * parentResponder,
|
|
InputEventHandlerDelegate * inputEventHandlerDelegate,
|
|
TextFieldDelegate * textFieldDelegate
|
|
) :
|
|
m_abscissaSymbol(Font(), 1.0f, 0.5f, TextColor(), BackgroundColor()),
|
|
m_abscissaValue(
|
|
parentResponder,
|
|
m_textBody,
|
|
k_abscissaBufferSize,
|
|
TextField::maxBufferSize(),
|
|
inputEventHandlerDelegate,
|
|
textFieldDelegate,
|
|
Font(),
|
|
0.0f, 0.5f,
|
|
TextColor(),
|
|
BackgroundColor()
|
|
),
|
|
m_ordinateView(Font(), 0.5f, 0.5f, TextColor(), BackgroundColor())
|
|
{
|
|
m_textBody[0] = 0;
|
|
}
|
|
|
|
View * XYBannerView::subviewAtIndex(int index) {
|
|
assert(0 <= index && index < numberOfSubviews());
|
|
View * subviews[] = {&m_abscissaSymbol, &m_abscissaValue, &m_ordinateView};
|
|
return subviews[index];
|
|
}
|
|
|
|
}
|