Introduce window hooks to choose the plot's window system - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window_hooks.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年04月22日 23:27:25 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年04月22日 23:27:25 +0200
commit163c4f4572e4e0bb47b408c8a3b1a69f16bcbff1 (patch)
tree701069ee22ff4155ed838754e86dee9ac5c72845 /agg-plot/window_hooks.h
parent73e77ecaf9eb7e2df3b5187b3491ac0ae491a83d (diff)
downloadgsl-shell-163c4f4572e4e0bb47b408c8a3b1a69f16bcbff1.tar.gz
Introduce window hooks to choose the plot's window system
Diffstat (limited to 'agg-plot/window_hooks.h')
-rw-r--r--agg-plot/window_hooks.h 23
1 files changed, 23 insertions, 0 deletions
diff --git a/agg-plot/window_hooks.h b/agg-plot/window_hooks.h
new file mode 100644
index 00000000..ecc03842
--- /dev/null
+++ b/agg-plot/window_hooks.h
@@ -0,0 +1,23 @@
+#ifndef AGGPLOT_WINDOW_HOOKS_H
+#define AGGPLOT_WINDOW_HOOKS_H
+
+#include "defs.h"
+
+__BEGIN_DECLS
+
+#include "lua.h"
+
+struct window_hooks {
+ int (*create)(lua_State* L);
+ int (*attach)(lua_State* L);
+ int (*update)(lua_State* L);
+ int (*refresh)(lua_State* L);
+ int (*save_image)(lua_State* L);
+ int (*restore_image)(lua_State* L);
+};
+
+extern struct window_hooks app_window_hooks[1];
+
+__END_DECLS
+
+#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月15日 00:21:20 +0000

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