gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot-cpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/lua-plot-cpp.h')
-rw-r--r--agg-plot/lua-plot-cpp.h 33
1 files changed, 33 insertions, 0 deletions
diff --git a/agg-plot/lua-plot-cpp.h b/agg-plot/lua-plot-cpp.h
new file mode 100644
index 00000000..5e318dd0
--- /dev/null
+++ b/agg-plot/lua-plot-cpp.h
@@ -0,0 +1,33 @@
+#ifndef AGGPLOT_LUA_PLOT_CPP_H
+#define AGGPLOT_LUA_PLOT_CPP_H
+
+#include "lua-plot.h"
+
+extern "C" {
+#include "lua.h"
+}
+
+#include "plot.h"
+#include "resource-manager.h"
+#include "drawable.h"
+
+class lua_plot {
+public:
+ typedef plot<drawable, lua_management> plot_type;
+
+private:
+ plot_type m_plot;
+
+public:
+ lua_plot() : m_plot(), id(-1) { };
+
+ void update_window(lua_State *L);
+
+ plot_type& self() { return m_plot; };
+
+ static lua_plot *check(lua_State *L, int index);
+
+ int id;
+};
+
+#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 09:40:03 +0000

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