mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
32 lines
813 B
C++
32 lines
813 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();
|
|
virtual void setFunction(Function * f);
|
|
Function * function();
|
|
void reloadCell() override;
|
|
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;
|
|
protected:
|
|
constexpr static KDCoordinate k_separatorThickness = 1;
|
|
Function * m_function;
|
|
EvenOddExpressionCell m_expressionView;
|
|
private:
|
|
static constexpr KDCoordinate k_emptyRowHeight = 50;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|