Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

GooCanvas Model

by renegadex (Beadle)
on Jul 25, 2008 at 00:39 UTC ( #700007=perlquestion: print w/replies, xml ) Need Help??

renegadex has asked for the wisdom of the Perl Monks concerning the following question:

what is the difference between a Canvas Item and a Canvas Item Model?

Replies are listed 'Best First'.
Re: GooCanvas Model
by zentara (Archbishop) on Jul 31, 2008 at 15:00 UTC
    Hi, I wondered about this myself. I couldn't see much of a difference in the demo code, in the way it worked. My first thought was that a model was a way to make clones... like make a model then clone it to make new items, but I don't think that is it.

    If you look at the docs that come with the Goo c library, the Model class is designed to make subclassing of items and designing your own items simpler. I don't grasp it all yet, but it seems that the various Model classes are the base classes of the various item classes (which are more complex than the base model). There are subtle differences in the inheritance heirarchy between the model and the item, and that probably make it easier to use it as a base class.

    I'm not really a human, but I play one on earth Remember How Lucky You Are

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://700007]
Approved by planetscape
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-05-29 11:38 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (101 votes). Check out past polls.