gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/c-drawables.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年05月09日 23:00:00 +0000
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年05月09日 23:00:00 +0000
commit3f94da0fce219777cbe7e875fb38ec8788cef04b (patch)
treee2c9c9394820fb9ba1c768477b5f4124e4a109af /agg-plot/c-drawables.h
parent25a50420115835ff4e03bdc4e96a77f7fd56a878 (diff)
downloadgsl-shell-3f94da0fce219777cbe7e875fb38ec8788cef04b.tar.gz
Modification is the AGG plot class. Now you can turn on/off units. Simplified the C++ class implementation.
Diffstat (limited to 'agg-plot/c-drawables.h')
-rw-r--r--agg-plot/c-drawables.h 8
1 files changed, 4 insertions, 4 deletions
diff --git a/agg-plot/c-drawables.h b/agg-plot/c-drawables.h
index 624a816d..3855f90b 100644
--- a/agg-plot/c-drawables.h
+++ b/agg-plot/c-drawables.h
@@ -10,10 +10,7 @@
#define CTEXT struct my_c_text
#ifdef __cplusplus
-#include "units-plot.h"
-
typedef plot<vertex_source, ref_manager> plot_type;
-typedef units_plot<vertex_source, ref_manager> units_plot_type;
#endif
__BEGIN_DECLS
@@ -25,7 +22,7 @@ CPLOT;
CVERTSRC;
CPATH;
-extern CPLOT * plot_new (int with_units);
+extern CPLOT * plot_new (const char *title);
extern void plot_free (CPLOT *p);
extern void plot_add (CPLOT *p, CVERTSRC *src, struct color *color,
struct trans_spec *post, struct trans_spec *pre,
@@ -33,6 +30,9 @@ extern void plot_add (CPLOT *p, CVERTSRC *src, struct color *color,
extern void plot_set_title (CPLOT *p, const char *title);
extern const char * plot_get_title (CPLOT *p);
+extern int plot_use_units (CPLOT *p);
+extern void plot_set_units (CPLOT *p, int use_units);
+
extern void vertex_source_ref (CVERTSRC *p);
extern void vertex_source_unref (CVERTSRC *p);
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月29日 12:41:21 +0000

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