Re: drawing area and expose event
- From: Paul Davis <pbd Op Net>
- To: "Norman Black" <stonybrk ix netcom com>
- Cc: "Havoc Pennington" <hp redhat com>, "gtk-list" <gtk-list gnome org>
- Subject: Re: drawing area and expose event
- Date: Wed, 27 Feb 2002 12:01:58 -0500
>Hmmm. "all drawing"!!!
>
>Are you saying that when a user hits the "e" key in my program I should
>generate an expose event to draw the "e" in my window rather than simply
>draw the "e" in response to them pressing "e".
call gtk_widget_queue_draw(), then redraw in the subsequent expose
event.
you have to draw the "e" in the expose event anyway, because if you
window is hidden or minimized-then-restored or unmapped in any way,
the X server will ask you to redraw it. X does not store the contents
of windows - when an area of a window is uncovered, the application
needs to redraw it from scratch.
your program design becomes simpler by doing everything from an expose
event.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]