Numworks Epsilon  1.4.1
Graphing Calculator Operating System
variable_box_leaf_cell.h
Go to the documentation of this file.
1 #ifndef APPS_VARIABLE_BOX_LEAF_CELL_H
2 #define APPS_VARIABLE_BOX_LEAF_CELL_H
3 
4 #include <escher.h>
5 #include <poincare.h>
6 
8 public:
11  void reloadCell() override;
12  void setLabel(const char * text);
13  void setSubtitle(const char * text);
14  void setExpressionLayout(Poincare::ExpressionLayout * expressionLayout);
15  void drawRect(KDContext * ctx, KDRect rect) const override;
16 private:
17  constexpr static KDCoordinate k_separatorThickness = 1;
18  constexpr static KDCoordinate k_widthMargin = 10;
19  int numberOfSubviews() const override;
20  View * subviewAtIndex(int index) override;
21  void layoutSubviews() override;
22  BufferTextView m_labelView;
23  BufferTextView m_subtitleView;
24  ExpressionView m_expressionView;
25  bool m_displayExpression;
26 };
27 
28 #endif
int16_t KDCoordinate
Definition: coordinate.h:6
void setLabel(const char *text)
void setExpressionLayout(Poincare::ExpressionLayout *expressionLayout)
void displayExpression(bool displayExpression)
Definition: rect.h:26
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: view.h:23
void setSubtitle(const char *text)