Files
Upsilon/apps/graph/function.h
Émilie Feral 082a3883cd [apps/graph] Add a name attribute to functions
Change-Id: I7a8fd1701b026b27d1dfcfc87fc92398c494e7fd
2016-09-16 17:23:45 +02:00

30 lines
559 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();
private:
const char * m_text;
const char * m_name;
KDColor m_color;
Expression * m_expression;
ExpressionLayout * m_layout;
};
}
#endif