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