Re: drawing area widget repainting



lost <lost paradise net nz> writes:
How do I force a drawing area widget to redraw a sub-section of itself
and clear the area to the default background colour at the same time?

there is:
      gtk_widget_queue_draw_area(); 
which forces the redraw, but dosn't clear the exposed area first

In GTK 2 (1.3.x for now) it does do this, as an aside.
 
At present, I'm clearing the area by drawing a filled rectangle over it
in the same colour as the default background, but I'd like to find the
proper method

gdk_window_clear_area() is one approach, anyway.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]