Files
Upsilon/apps/graph/list/function_expression_cell.h
Émilie Feral 0f4d7f0914 [apps/shared][apps/graph][apps/sequence] Reorganise list controllers,
function title cells and function expression cells

Change-Id: Idbdae4975c8ed83a023c781dc14929b8c2053bb0
2017-02-16 14:46:04 +01:00

29 lines
710 B
C++

#ifndef GRAPH_FUNCTION_EXPRESSION_CELL_H
#define GRAPH_FUNCTION_EXPRESSION_CELL_H
#include <escher.h>
#include "../function.h"
namespace Graph {
class FunctionExpressionCell : public EvenOddCell {
public:
FunctionExpressionCell();
virtual void setFunction(Function * f);
Function * function();
void setEven(bool even) override;
void setHighlighted(bool highlight) override;
int numberOfSubviews() const override;
View * subviewAtIndex(int index) override;
void layoutSubviews() override;
void drawRect(KDContext * ctx, KDRect rect) const override;
private:
constexpr static KDCoordinate k_separatorThickness = 1;
Function * m_function;
ExpressionView m_expressionView;
};
}
#endif