[Glgui-dev] callback system changes
Status: Alpha
Brought to you by:
druid-
From: Scott F. <sf...@gl...> - 2004-06-17 02:46:45
|
I've finally set aside some time to rework the callback system. I added a = few tasks for myself, just to keep it organized. Here's what I'm plannin= g on doing by the end of the weekend (assuming work doesn't surprise me): + (done) added a pointer to the calling frame to the callback function for = easy access. - combine CUI_Frame::Click and CUI_Frame::CallbackFunc into ::Callback that= updates the frame's state and then calls callback functions as necessary - generalize callback : pass an enum for the type of callback action. (clic= k, hover, hover_leave, etc). should be able to integrate click and drag f= unctionality into this instead of the current system. The only other change I have planned is to write up some sort of connectivi= ty graph manager for key navigation. Though I'm not yet entirely sure wh= ere it will exist; possibly just builtin to the frame. After that I'll probably work on a simple game or other app that uses to gu= i to hopefully get a better idea where more work is still needed. if you have any comments or suggestions, send em in. |