Re: drawing area and expose event



>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]