Files
Upsilon/apps/shared/function_expression_cell.h
Émilie Feral 0478817040 [apps/shared] Move apps/graph/list/function_expression_cell in shared
folder to be used by sequence

Change-Id: I4a019c322cc7cb864479b200ee56d05234f5491c
2017-02-13 17:15:07 +01:00

29 lines
703 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();
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