Added a centralized method to manage Lua compatibility build options. - 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-ST <francesco.abbate@st.com>2011年02月02日 18:13:11 +0100
committerfrancesco-ST <francesco.abbate@st.com>2011年02月02日 18:13:11 +0100
commit87feed1b8c36fd42a3750d01382a4978971416cc (patch)
tree90f68f0d96a64b3f8ea14fb59655c8154808a24f /agg-plot/window-cpp.h
parent00cb071098589dc5824509d7e7786fde16a00ff2 (diff)
downloadgsl-shell-87feed1b8c36fd42a3750d01382a4978971416cc.tar.gz
Added a centralized method to manage Lua compatibility build options.
The build is controlled by the variable LUA_COMPATIBLE in makeconfig. The possible values are 'no', 'yes' and 'strict'.
Diffstat (limited to 'agg-plot/window-cpp.h')
-rw-r--r--agg-plot/window-cpp.h 18
1 files changed, 18 insertions, 0 deletions
diff --git a/agg-plot/window-cpp.h b/agg-plot/window-cpp.h
index d0239d9a..400e9b99 100644
--- a/agg-plot/window-cpp.h
+++ b/agg-plot/window-cpp.h
@@ -89,3 +89,21 @@ public:
virtual void on_draw();
virtual void on_resize(int sx, int sy);
};
+
+#ifdef WINDOW_LIVE_CHECK
+class window_boxed : public window {
+ bool m_is_alive;
+
+public:
+ window_boxed(agg::rgba& bgcol) : window(bgcol), m_is_alive(true) {};
+ ~window_boxed() { m_is_alive = false; }
+
+ bool is_alive() const { return m_is_alive; };
+};
+#else
+class window_boxed : public window {
+public:
+ window_boxed(agg::rgba& bgcol) : window(bgcol) {};
+ bool is_alive() const { return true; };
+};
+#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 19:47:01 +0000

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