gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/c-drawables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/c-drawables.cpp')
-rw-r--r--agg-plot/c-drawables.cpp 14
1 files changed, 13 insertions, 1 deletions
diff --git a/agg-plot/c-drawables.cpp b/agg-plot/c-drawables.cpp
index 43a6a96d..d5111c02 100644
--- a/agg-plot/c-drawables.cpp
+++ b/agg-plot/c-drawables.cpp
@@ -30,7 +30,6 @@ typedef my::path path_type;
CPLOT *
plot_new(int with_units)
{
- typedef units_plot<vertex_source, ref_manager> units_plot_type;
plot_type *p;
if (with_units)
@@ -129,6 +128,19 @@ void plot_add(CPLOT *_p, CVERTSRC *_vs, struct color *color,
p->add(curr, new_color(color), (bool) outline);
}
+void
+plot_set_title (CPLOT *_p, const char *title)
+{
+ plot_type* p = (plot_type*) _p;
+ p->set_title(title);
+}
+
+const char * plot_get_title (CPLOT *_p)
+{
+ plot_type* p = (plot_type*) _p;
+ return p->get_title();
+}
+
CPATH* path_new()
{
path_type* p = new path_type();
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月03日 05:17:19 +0000

AltStyle によって変換されたページ (->オリジナル) /