Hi,

Bill Hayden <[EMAIL PROTECTED]> writes:

> 1. Ideally, should each window have its own unique event handler, or 
> should each window attach to a master event handler like is done in 
> df_window.

I assume you mean event buffer when you say event handler. Both
approaches have advantages and disadvantages. You can save resources
if you attach all windows to one event buffer and it may make your
code easier if all events come from one source. However you may need
to hold a mapping between window pointers and window ids. This mapping
is not necessary if you keep one event buffer per window.

> 2.  df_window seems to do the above in an odd way (to me, anyway): 
> window 2 attaches to window1's event handler.  I guess my question is 
> this - is there any difference between calling a window's 
> CreateEventBuffer, and calling the global CreateEventBuffer then 
> attaching the window to it?

no, it doesn't make any difference.


Salut, Sven


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to