From: Kevin S. <kev...@ya...> - 2001-09-04 15:40:51
|
--- Takaaki Tateishi <tt...@ja...> wrote: > Now I've added some module functions such as Fl::add_fd, > Fl::add_timeout, > Fl::add_idle and Fl::add_handlers. In this approach, Fltk > module has > constants FDMap, Callbacks and Handlers to keep Proc > objects and user data. Sounds great. > In the case of Browser#add, we prepare the instance > variable @items > which is an Array object and call Fl_Browser::add() with > the string > and the data, and then we keep added data using @items > without copying. > I will try to realize this idea, if you don't mind. I think that sounds good, although I don't fully understand it. Are you saying that we will never pass 'data' into FLTK? That we will just keep it in our code, so when the user wants their data we can give it to them without asking FLTK? I think Menu_ has a similar situation, so you might also look at it for ideas. Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |