[apps/shared] Move apps/graph/list/function_expression_cell in shared

folder to be used by sequence

Change-Id: I4a019c322cc7cb864479b200ee56d05234f5491c
This commit is contained in:
Émilie Feral
2017-02-07 11:02:29 +01:00
parent 44317d5c95
commit 0478817040
6 changed files with 26 additions and 26 deletions

View File

@@ -0,0 +1,28 @@
#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