Re: [Fresco-devel] What is a graphic?
Ben Bucksch <[email protected]> Tue, 20 Jan 2004 20:52:28 +0100
| Newsgroups | gmane.comp.video.fresco.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Seefeld wrote: > The job of taking a dom and maping that to a scene graph isn't the > scope of > a graphic (which really only is a scene graph node). How is that fundamentially different from creating a checkbox? It renders/represents something, has state interesting to and modifyable by the app and could theoretically be implemented by composing other graphics in the server or implementing a Graphic itself. > As you say, it's more of a factory. Yes, just like the WidgetKit and its method which creates a checkbox. As app, you don't know, if the checkbox factory function implements the checkbox by composing other Graphics or deriving from existing Graphics code or completely rolling its own. Also compare my tree widget prototype. Same for the HTML component. For the app, you call a function and get a Graphic (plus maybe other ways to modify the state).