Files
Upsilon/apps/graph/list/function_name_view.h
Émilie Feral 52f30ddf28 [apps/graph/list] turn the childless function cell in a controller with two subviews
Change-Id: I7606a3c2b4ab81cba90b78ed70dac9ba6ebb09c2
2016-09-19 15:07:00 +02:00

26 lines
640 B
C++

#ifndef GRAPH_FUNCTION_NAME_VIEW_H
#define GRAPH_FUNCTION_NAME_VIEW_H
#include <escher.h>
#include "../function.h"
class FunctionCell;
class FunctionNameView : public ChildlessView, public Responder {
public:
FunctionNameView(Responder * parentResponder, Invocation invocation);
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;
Invocation m_invocation;
};
#endif