author | francesco-ST <francesco.abbate@st.com> | 2010年08月09日 15:50:43 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年08月09日 15:50:43 +0200 |
commit | 129604a18b0f93e89cf638a079b6f1ab349fbe8f (patch) | |
tree | 8abeb52bc7a01472ba505aebaa36fb2ef1765646 /agg-plot/lua-plot-cpp.h | |
parent | 99c6c9b47f25eb7bc8756d5b2a5fd5ec7dac73e6 (diff) | |
download | gsl-shell-129604a18b0f93e89cf638a079b6f1ab349fbe8f.tar.gz |
-rw-r--r-- | agg-plot/lua-plot-cpp.h | 33 |
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 |