Files
Upsilon/apps/graph/function.h
Émilie Feral 1f7ba888c9 [apps/graph] add an attribute "activate" to functions
Change-Id: I1a1f548c540a6e31fe9ce1aeb742bf6a6292362c
2016-09-20 11:12:46 +02:00

33 lines
626 B
C++

#ifndef GRAPH_FUNCTION_H
#define GRAPH_FUNCTION_H
#include <poincare.h>
#include <kandinsky.h>
namespace Graph {
class Function {
public:
Function();
Function(const char * text, KDColor m_color);
~Function(); // Delete expression and layout, if needed
const char * text();
const char * name();
KDColor color() const { return m_color; }
Expression * expression();
ExpressionLayout * layout();
bool isActive();
void setActive(bool active);
private:
const char * m_text;
const char * m_name;
KDColor m_color;
Expression * m_expression;
ExpressionLayout * m_layout;
bool m_active;
};
}
#endif