Files
Upsilon/apps/graph/list/function_cell.h
Romain Goyet 8f9d9d0b0b [escher] focus -> firstResponder
Change-Id: I2e84afe6f14abfc65e45814300e8db9703840337
2016-09-15 16:21:29 +02:00

23 lines
497 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 didBecomeFirstResponder() override;
void didResignFirstResponder() override;
private:
Graph::Function * m_function;
bool m_focused;
bool m_even;
};
#endif