mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
26 lines
724 B
C++
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
|