-rw-r--r-- | agg-plot/plot.h | 17 |
diff --git a/agg-plot/plot.h b/agg-plot/plot.h index 171aabad..e703ab30 100644 --- a/agg-plot/plot.h +++ b/agg-plot/plot.h @@ -119,14 +119,9 @@ public: } }; - void set_title(const char *text); - const char *title() const { return m_title.cstr(); }; - - void set_xlabel(const char *text) { str_copy_c(&m_xlabel, text); } - const char *xlabel() const { return m_xlabel.cstr(); }; - - void set_ylabel(const char *text) { str_copy_c(&m_ylabel, text); } - const char *ylabel() const { return m_ylabel.cstr(); }; + str& title() { return m_title; } + str& x_axis_title() { return m_xlabel; } + str& y_axis_title() { return m_ylabel; } void set_units(bool use_units); bool use_units() const { return m_use_units; }; @@ -250,12 +245,6 @@ void plot<VS,RM>::add(VS* vs, agg::rgba8& color, bool outline) } template <class VS, class RM> -void plot<VS,RM>::set_title(const char *text) -{ - str_copy_c(&m_title, text); -} - -template <class VS, class RM> void plot<VS,RM>::push_drawing_queue() { for (pod_list<item> *c = m_drawing_queue; c != 0; c = c->next()) |