mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Move apps/graph/list/function_expression_cell in shared
folder to be used by sequence Change-Id: I4a019c322cc7cb864479b200ee56d05234f5491c
This commit is contained in:
28
apps/shared/function_expression_cell.h
Normal file
28
apps/shared/function_expression_cell.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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 setFunction(Function * f);
|
||||
Function * function();
|
||||
void reloadCell() override;
|
||||
int numberOfSubviews() const override;
|
||||
View * subviewAtIndex(int index) override;
|
||||
void layoutSubviews() override;
|
||||
void drawRect(KDContext * ctx, KDRect rect) const override;
|
||||
private:
|
||||
static constexpr KDCoordinate k_emptyRowHeight = 50;
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
Function * m_function;
|
||||
ExpressionView m_expressionView;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user