Drawing lines with GTK+ and Cairo without removing what is already drawn
问题 Currently I am writing a program in C, on a linux system (Raspberry Pi to be exact) which should draw to a GTK window using Cairo. I've been following the tutorial at: http://zetcode.com/gfx/cairo/ . But it is way to vague with it's explanations at certain points. It does not explain two points that I really need: I can't figure out a way to draw to the window with a proper function call. It removes what is already drawn. I need a piece of code that does some simple things, in a very Object