Files
Upsilon/apps/graph/function.h
Romain Goyet 14cf96157c [apps/graph] Function store a color
Change-Id: I1339f999b9c41a4293dfc5211d2183db46300ecf
2016-08-29 13:38:06 +02:00

28 lines
513 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();
KDColor color() const { return m_color; }
Expression * expression();
ExpressionLayout * layout();
private:
const char * m_text;
KDColor m_color;
Expression * m_expression;
ExpressionLayout * m_layout;
};
}
#endif