8 FunctionExpressionCell::FunctionExpressionCell() :
40 return &m_expressionView;
44 KDRect expressionFrame(k_separatorThickness+k_margin, 0,
bounds().width() - k_separatorThickness-k_margin,
bounds().height()-k_separatorThickness);
45 m_expressionView.
setFrame(expressionFrame);
53 ctx->
fillRect(
KDRect(k_separatorThickness,
bounds().height()-k_separatorThickness,
bounds().width()-k_separatorThickness, k_separatorThickness), separatorColor);
void setBackgroundColor(KDColor backgroundColor)
virtual void setEven(bool even)
void setFrame(KDRect frame)
void setExpression(Poincare::ExpressionLayout *expressionLayout)
void drawRect(KDContext *ctx, KDRect rect) const override
virtual KDColor backgroundColor() const
void layoutSubviews() override
View * subviewAtIndex(int index) override
void setHighlighted(bool highlight) override
constexpr KDColor KDColorWhite
void setTextColor(KDColor textColor)
void setTextColor(KDColor color)
int numberOfSubviews() const override
bool isHighlighted() const
static constexpr KDColor WallScreen
void fillRect(KDRect rect, KDColor color)
void setEven(bool even) override
void setExpression(Poincare::ExpressionLayout *expressionLayout)
virtual void setHighlighted(bool highlight)
static constexpr KDColor GreyBright