Files
Upsilon/apps/variable_box_leaf_cell.h
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

26 lines
734 B
C++

#ifndef APPS_VARIABLE_BOX_LEAF_CELL_H
#define APPS_VARIABLE_BOX_LEAF_CELL_H
#include <escher.h>
class VariableBoxLeafCell : public HighlightCell {
public:
VariableBoxLeafCell();
void displayExpression(bool displayExpression);
void reloadCell() override;
void setLabel(const char * text);
void setSubtitle(const char * text);
void setExpression(Poincare::ExpressionLayout * expressionLayout);
void drawRect(KDContext * ctx, KDRect rect) const override;
private:
int numberOfSubviews() const override;
View * subviewAtIndex(int index) override;
void layoutSubviews() override;
BufferTextView m_labelView;
BufferTextView m_subtitleView;
ExpressionView m_expressionView;
bool m_displayExpression;
};
#endif