Files
Upsilon/apps/variable_box_leaf_cell.h
Émilie Feral 1bd396ff86 [apps] Re implement variable box no to use node model
Change-Id: If7a75b900f0f2f5a152f7e28965555a12a14aba2
2016-11-23 14:29:52 +01:00

26 lines
724 B
C++

#ifndef APPS_VARIABLE_BOX_LEAF_CELL_H
#define APPS_VARIABLE_BOX_LEAF_CELL_H
#include <escher.h>
class VariableBoxLeafCell : public TableViewCell {
public:
VariableBoxLeafCell();
void displayExpression(bool displayExpression);
void reloadCell() override;
void setLabel(const char * text);
void setSubtitle(const char * text);
void setExpression(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