On 10/22/07, Caio Marcelo <[EMAIL PROTECTED]> wrote: > I've been working on a different (and more flexible) design for the > List widget. The code is changing as I implement things, but a basic > design settled down. The idea is if this new design works better, we > can try port the Tree widget too (so List will be just a subcase).
Some updates since then: Etk_Renderers are now simply structures with pointer to the renderer function, data to pass, and a destroy_callback to free this data. Specific builtin renderers (like for text, int, checkbox or button) are provided with convenience functions to create Etk_Renderer correctly holding necessary data. This avoids old hacky way of passing unsigned identifying the model row "slot" in a (void *). > * I want to abstract out the kinetic stuff. At first I thought it > would be easier to let scrolled_view be kinetic. The way it is, List > itself implement kinetics (so it can control when it's a click and > when it's not). Math and code for this can be separated: having a > struct with kinetic info, and calling kinetic functions to tell about > mouse down/up/move events, and it would have a callback telling how > much scroll. Done. This is etk_kinetic.[ch]. Much of the changes are improvements orthogonal to new Etk_List, like the separate kinetic mechanism or the Etk_Base (for Events derive) change. http://staff.get-e.org/?p=users/cmarcelo/etk.git;a=shortlog;h=experimental The example (still crappy): http://pastie.caboo.se/private/u3lqpjjwsrmjqmf9fu9adw And the Python bindings updated are in experimental branch too: http://staff.get-e.org/?p=users/cmarcelo/python-etk.git;a=shortlog;h=experimental Cheers, Caio Marcelo ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
