Re: What is "canvas"?

"Nickolai Dobrynin" <[email protected]> Mon, 6 Mar 2006 16:04:08 -0600
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
Felix,

... could you explain me briefly what a "canvas" is?


Let me try.  But please know that I'm myself a novice, just like you, so
take it with a grain
of salt.  I'd encourage veterans to step in and correct me if I get anything
wrong.

GtkPlotCanvas is a subclass of GtkFixed which means that it can arrange its
children in
more or less an arbitrary way depending on what the user wants.  GtkFixed
allows you
to drag-and-drop its children, resize them and more.  The mission of
GtkPlotCanvas is
to control the disposition of every element that visually makes up the
plot.  There are
at least two types of children that I can see that can be added to the
GtkPlotCanvas
object.  GtkPlot is one of them, and then there is "everything else" (texts,
lines, etc.)
which is all gathered under the same hood of GtkPlotCanvasChild.



Regards,

Nickolai


PS  Please make sure you send a copy (CC) of your message to the mailing
list.  You are
likely to get more responses that way.



] Hi Nickolai!
]    I'm very pleased to say that with your help I've been able to
] understand a lot of things 'bout the way to use gtk plot. Thank you
] very much, I was really lost :-). By the other hand, could you explain
] me briefly what a "canvas" is? I've seen that you use it to put into
] your plot, but I don't see the relation between the object plot, the
] object canvas and the plot itself. Could you explain me that, plis?