Files
Upsilon/apps/shared/function_expression_cell.h
Émilie Feral 460e692309 [apps/sequence] Improve sequence model
Change-Id: I1369646291c4da852777f07c4730c640c3df76ac
2017-02-13 17:15:08 +01:00

29 lines
711 B
C++

#ifndef SHARED_FUNCTION_EXPRESSION_CELL_H
#define SHARED_FUNCTION_EXPRESSION_CELL_H
#include <escher.h>
#include "function.h"
namespace Shared {
class FunctionExpressionCell : public EvenOddCell {
public:
FunctionExpressionCell();
virtual 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