mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
27 lines
569 B
C++
27 lines
569 B
C++
#ifndef GRAPH_FUNCTION_EXPRESSION_H
|
|
#define GRAPH_FUNCTION_EXPRESSION_H
|
|
|
|
#include <escher.h>
|
|
#include "../even_odd_cell.h"
|
|
#include "../function.h"
|
|
|
|
namespace Graph {
|
|
|
|
class FunctionCell;
|
|
|
|
class FunctionExpressionView : public EvenOddCell {
|
|
public:
|
|
FunctionExpressionView();
|
|
void setFunction(Function * f);
|
|
Function * function();
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
private:
|
|
constexpr static KDColor k_separatorColor = KDColor(0xEFF2F4);
|
|
constexpr static KDCoordinate k_separatorThickness = 1;
|
|
Function * m_function;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|