
9 Oct
2005
9 Oct
'05
12:51 p.m.
John Torjo wrote:
Have you read the Fresco doc that Stefan gave a link to? The point is that life would be sooo much better if there is no distinction between a "widget" and a "graphic". Think abstraction and genericity! Here's the relevant quote:
Yes, this sounds very cool!
I do think, however, that there should be a distinction between widget and graphic -- that is, the widget contains the logic, while the graphic(s) draw the UI. This is how I've implemented surfaces.
What about a model-view-controller alike separation ? In Fresco you'd create a widget through a 'WidgetKit', passing it a model to bind to, and would obtain a compound graphic that is a nice citizen of the scene graph. Regards, Stefan