From: Kevin S. <kev...@ya...> - 2001-09-02 00:02:42
|
I actually have a full application that I would like to port to Ruby-FLTK. It's a game that is currently using Ruby-GTK, and I think we almost have enough for me to bring it over. I know one thing that is missing is either an idle callback or a timer callback, which are similar to each other. It seems like we need some kind of general map so we can invoke various kinds of callbacks from C++. For each callback, we need to store both the callback proc/block, and a data value. For widget callbacks, what we have works fine. But a client could add ten timer callbacks and ten idle callbacks, each with different data values. We need some way to handle those, and whatever that way is might end up also being usable for widget callbacks (to avoid duplicate code). Any ideas on this? Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |