mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
22 lines
453 B
C++
22 lines
453 B
C++
#ifndef GRAPH_FUNCTION_CELL_H
|
|
#define GRAPH_FUNCTION_CELL_H
|
|
|
|
#include <escher.h>
|
|
#include "../function.h"
|
|
|
|
class FunctionCell : public ChildlessView, public Responder {
|
|
public:
|
|
FunctionCell();
|
|
void setFunction(Graph::Function * f);
|
|
void setEven(bool even);
|
|
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void setFocused(bool focused) override;
|
|
private:
|
|
Graph::Function * m_function;
|
|
bool m_focused;
|
|
bool m_even;
|
|
};
|
|
|
|
#endif
|