Re: building a gtk sdl widget
- From: Havoc Pennington <hp redhat com>
- To: derethor thepentagon com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: building a gtk sdl widget
- Date: 12 Apr 2001 20:24:28 -0400
Derethor <derethor thepentagon com> writes:
what is exactly the difference between realize and expose?
On which event can I be sure that the window is visible on the screen?
after configure maybe?
what is the meaning of configure, exactly?
how can I set the expose_event, called after the event? (like with
gtk_signal_connect_after)
any idea why I get my crash?
realize should create window system (GDK) resources such as
widget->window.
unrealize should destroy what realize created.
you can't draw on a window until you receive the first expose event
from the window system, i.e. the first real expose. synthetic exposes
you create yourself don't count.
configure_event means the window's size or position changed. this
always happens when the window first goes onscreen, but you can't draw
until you get an expose.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]