mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 06:40:37 +01:00
25 lines
604 B
C++
25 lines
604 B
C++
#ifndef GRAPH_FUNCTION_EXPRESSION_H
|
|
#define GRAPH_FUNCTION_EXPRESSION_H
|
|
|
|
#include <escher.h>
|
|
#include "../function.h"
|
|
|
|
class FunctionCell;
|
|
|
|
class FunctionExpressionView : public ChildlessView, public Responder {
|
|
public:
|
|
FunctionExpressionView(Responder * parentResponder);
|
|
Graph::Function * function() const;
|
|
bool isEven() const;
|
|
bool isFocused() const;
|
|
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void didBecomeFirstResponder() override;
|
|
void didResignFirstResponder() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
private:
|
|
bool m_focused;
|
|
};
|
|
|
|
#endif
|