Re: guile-gtk?



Marius Vollmer <mvo@zagadka.ping.de> writes:


> How would you like to access this information.  There are at least two
> general possibilities, and I'm not sure which one to provide.
> 
> - A ton of accessor function, so that you can do
> 
>     (case (gdk-event-type ev)
>       ((motion-notify)
>        (pk 'x (gdk-event-x ev) 'y (gdk-event-y ev))))
> 
> - Or a single conversion function that turns a GdkEvent into a
>   association list
> 
>     (pk 'ev (gdk-event->alist ev))
>     => ((type . motion-notify) (x . 12.0) (y . 13.0) ...)

Wouldn't it be easier to implement the alist aproach and then write
macros to do something similar to the first approach?

Aldy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]