9 m_text(
KDText::FontSize::Large,
I18n::Message::Default, 0.5f, 0.5f),
10 m_calculation(parentResponder, textFieldDelegate, draftTextBuffer),
17 return &m_calculation;
23 m_isResponder = shouldBeResponder;
45 return &m_calculation;
52 int CalculationCell::numberOfSubviews()
const {
56 View * CalculationCell::subviewAtIndex(
int index) {
57 assert(index >= 0 && index < 2);
61 return &m_calculation;
64 void CalculationCell::layoutSubviews() {
70 KDCoordinate CalculationCell::calculationCellWidth()
const {
72 return min(k_maxTextFieldWidth, max(k_minTextFieldWidth, calculationCellWidth));
Responder * responder() override
void strokeRect(KDRect rect, KDColor color)
CalculationCell(Responder *parentResponder=nullptr, char *draftTextBuffer=nullptr, TextFieldDelegate *textFieldDelegate=nullptr)
EditableTextCell * editableTextCell()
void setFrame(KDRect frame)
static constexpr KDCoordinate k_height
constexpr KDCoordinate width() const
KDSize minimalSizeForOptimalDisplay() const override
void drawRect(KDContext *ctx, KDRect rect) const override
constexpr KDColor KDColorWhite
KDSize minimalSizeForOptimalDisplay() const override
static constexpr KDColor GreyMiddle
void setResponder(bool shouldbeResponder)
MessageTextView * messageTextView()
void fillRect(KDRect rect, KDColor color)
void setHighlighted(bool highlight) override
static constexpr KDSize charSize(FontSize size=FontSize::Large)
void setHighlighted(bool highlight) override
virtual void setHighlighted(bool highlight)
KDSize minimalSizeForOptimalDisplay() const override
KDCoordinate height() const
static constexpr KDCoordinate k_outline
constexpr KDCoordinate height() const