Re: Redraw GtkDrawingArea
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Michael Ott <michael zolnott de>
- Cc: gtk mailing list <gtk-list gnome org>
- Subject: Re: Redraw GtkDrawingArea
- Date: 09 May 2005 17:47:55 +0200
Michael Ott <michael zolnott de> writes:
> In my application i draw some graphs after reading it from socket. But
> before i draw the new graphs i have to clear the area.
> How can i do this?
(a) You should do all drawing in the expose handler
(b) To redraw the widget, use gtk_widget_queue_draw(). To only redraw
a part of the widget, use gtk_widget_queue_draw_are(). These
functions will cause gtk+ to generate expose events.
Søren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]