Blame view

build3/apps/shared/function_expression_cell.h 769 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 setExpression(Poincare::ExpressionLayout * expressionLayout);
    void setTextColor(KDColor color);
    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;
    constexpr static KDCoordinate k_margin = 5;
    ExpressionView m_expressionView;
  };
  
  }
  
  #endif