Re: Drawing area with different layers

2011-02-28 Thread Chris
Thanks Tadej. I spent some time reading cairo document and tried what you suggested. I store a cairo surface and use cario_paint to redraw the surface. The result, however, is the same as I did with gdk_draw_drawable: the background is scribled. The problem might be that the drawing surface is

Re: Drawing area with different layers

2011-02-28 Thread Tadej Borovšak
Hello. > I'm new to gtk programming so this might be a very dummy question.  I > use a DrawingArea to draw a map with three layers: the background map, > the legend window, and app data.  Since the legend layer does not > change often, can I store it in a pixmap and simply copy it rather > than re

Drawing area with different layers

2011-02-28 Thread Chris
Hi there, I'm new to gtk programming so this might be a very dummy question. I use a DrawingArea to draw a map with three layers: the background map, the legend window, and app data. Since the legend layer does not change often, can I store it in a pixmap and simply copy it rather than redraw it