gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年08月19日 00:19:58 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年08月19日 00:19:58 +0200
commitbef124c9c9e081062a457f6d0b2ab1eda6283a3e (patch)
tree5a757e1c2a84900feb642a9790dad5d61f870509 /agg-plot/canvas.h
parent7cdb95a74e7f352620cd500940b73bf221f9e91a (diff)
downloadgsl-shell-bef124c9c9e081062a457f6d0b2ab1eda6283a3e.tar.gz
improved window slot identification vs plot
The code to generate a tree, to parse a split spec and to store window plot tree information is now factored. Now each plot area get a slot_id and redraw is made only in the region when required.
Diffstat (limited to 'agg-plot/canvas.h')
-rw-r--r--agg-plot/canvas.h 6
1 files changed, 6 insertions, 0 deletions
diff --git a/agg-plot/canvas.h b/agg-plot/canvas.h
index 25a1e258..f5304bec 100644
--- a/agg-plot/canvas.h
+++ b/agg-plot/canvas.h
@@ -75,6 +75,12 @@ public:
void clear() { rb.clear(bg_color); };
+ void clear_box(int x1, int y1, int width, int height)
+ {
+ for (int y = y1; y < y1 + height; y++)
+ rb.copy_hline (x1, y, x1 + width, bg_color);
+ };
+
template<class VertexSource>
void draw(VertexSource& vs, agg::rgba8 c)
{
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 00:40:56 +0000

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