author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年01月04日 14:40:49 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年01月04日 14:40:49 +0100 |
commit | 99b16872c85c2a090f334820d96f95f145d8db74 (patch) | |
tree | 12eab13fff805de8abcc3e06d5efb1e7dbc23395 /agg-plot/plot.h | |
parent | 046c56f449db15b9c9aa113cb03adf695dd7b9b6 (diff) | |
download | gsl-shell-99b16872c85c2a090f334820d96f95f145d8db74.tar.gz |
-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()) |