Files
Upsilon/apps/graph/list/function_expression_view.h
Émilie Feral 0704ab8776 [apps][escher] Improve colors
Change-Id: I31d3353a5372b63a6c2b3e62c88fb3b5c627e088
2017-01-27 11:46:13 +01:00

31 lines
714 B
C++

#ifndef GRAPH_FUNCTION_EXPRESSION_H
#define GRAPH_FUNCTION_EXPRESSION_H
#include <escher.h>
#include "../function.h"
namespace Graph {
class FunctionCell;
class FunctionExpressionView : public EvenOddCell {
public:
FunctionExpressionView();
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