#ifndef SHARED_FUNCTION_EXPRESSION_CELL_H #define SHARED_FUNCTION_EXPRESSION_CELL_H #include #include "function.h" namespace Shared { class FunctionExpressionCell : public EvenOddCell { public: FunctionExpressionCell(); void setFunction(Function * f); Function * function(); void reloadCell() override; int numberOfSubviews() const override; View * subviewAtIndex(int index) override; void layoutSubviews() override; void drawRect(KDContext * ctx, KDRect rect) const override; private: static constexpr KDCoordinate k_emptyRowHeight = 50; constexpr static KDCoordinate k_separatorThickness = 1; Function * m_function; ExpressionView m_expressionView; }; } #endif