gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window-cpp.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年11月04日 23:45:07 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年11月04日 23:45:07 +0100
commit96439321439d5919d58a3627a06460b3a2c31c4a (patch)
tree46f441234a18db08a529f02b0ce3afa95007399d /agg-plot/window-cpp.h
parent1ad1230456c211903c4d1c208fdd3d93e5956879 (diff)
downloadgsl-shell-96439321439d5919d58a3627a06460b3a2c31c4a.tar.gz
Implement save_svg for the native windows
Diffstat (limited to 'agg-plot/window-cpp.h')
-rw-r--r--agg-plot/window-cpp.h 5
1 files changed, 5 insertions, 0 deletions
diff --git a/agg-plot/window-cpp.h b/agg-plot/window-cpp.h
index 515b7fda..564a4160 100644
--- a/agg-plot/window-cpp.h
+++ b/agg-plot/window-cpp.h
@@ -60,6 +60,9 @@ private:
static ref *ref_lookup (ref::node *p, int slot_id);
+ template <class Function>
+ void plot_apply_rec(Function& f, ref::node* n);
+
ref::node* m_tree;
public:
@@ -73,6 +76,8 @@ public:
if (m_tree) delete m_tree;
};
+ template <class Function> void plot_apply(Function& f) { this->plot_apply_rec(f, m_tree); }
+
bool split(const char *spec);
int attach(sg_plot *plot, const char *spec);
void draw_slot(int slot_id, bool update_req);
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月13日 01:42:49 +0000

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