Numworks Epsilon  1.4.1
Graphing Calculator Operating System
function_expression_cell.h
Go to the documentation of this file.
1 #ifndef SHARED_FUNCTION_EXPRESSION_CELL_H
2 #define SHARED_FUNCTION_EXPRESSION_CELL_H
3 
4 #include <escher.h>
5 #include "function.h"
6 
7 namespace Shared {
8 
10 public:
12  void setExpression(Poincare::ExpressionLayout * expressionLayout);
13  void setTextColor(KDColor color);
14  void setEven(bool even) override;
15  void setHighlighted(bool highlight) override;
16  int numberOfSubviews() const override;
17  View * subviewAtIndex(int index) override;
18  void layoutSubviews() override;
19  void drawRect(KDContext * ctx, KDRect rect) const override;
20 private:
21  constexpr static KDCoordinate k_separatorThickness = 1;
22  constexpr static KDCoordinate k_margin = 5;
23  ExpressionView m_expressionView;
24 };
25 
26 }
27 
28 #endif
int16_t KDCoordinate
Definition: coordinate.h:6
void drawRect(KDContext *ctx, KDRect rect) const override
View * subviewAtIndex(int index) override
void setHighlighted(bool highlight) override
Definition: rect.h:26
Definition: color.h:6
Definition: view.h:23
void setExpression(Poincare::ExpressionLayout *expressionLayout)