GSL Interpolation functions implemented - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年09月23日 18:18:07 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年09月23日 18:18:07 +0200
commit16800ab30b0f9c2ef352fa0509ddfd6091917270 (patch)
tree2f1dbdb78c7d9c0041c532a984e6986cea89cdb4 /agg-plot/window.cpp
parente82a04315810be635ccb66840fab5de8a5138556 (diff)
downloadgsl-shell-16800ab30b0f9c2ef352fa0509ddfd6091917270.tar.gz
GSL Interpolation functions implemented
Diffstat (limited to 'agg-plot/window.cpp')
-rw-r--r--agg-plot/window.cpp 12
1 files changed, 12 insertions, 0 deletions
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp
index 54abe5c7..d51c5ed4 100644
--- a/agg-plot/window.cpp
+++ b/agg-plot/window.cpp
@@ -32,6 +32,7 @@ static const struct luaL_Reg window_methods[] = {
{"attach", window_attach },
{"split", window_split },
{"update", window_update },
+ {"close", window_close },
{"__gc", window_free },
{NULL, NULL}
};
@@ -505,6 +506,17 @@ window_restore_slot_image (lua_State *L)
return window_generic_oper (L, &window::restore_slot_image);
}
+int
+window_close (lua_State *L)
+{
+ window *win = object_check<window>(L, 1, GS_WINDOW);
+ win->lock();
+ if (win->status == canvas_window::running)
+ win->close_request();
+ win->unlock();
+ return 0;
+}
+
void
window_register (lua_State *L)
{
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 17:50:07 +0000

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