GNOME/GTK canvas



>Could please explain us in which way the canvas is limited ?

You can only put selected number of items to canvas. For example,
a spline curve widget is not supported. Right?

I would like to ask if it is possible to put a large drawing area
to canvas, and to put a second but smaller drawing area over the large
one? Both drawing areas should have their own callbacks.

Actually, putting two windows over each other should be so trivial that
it should be possible to implement without monsterous canvases.

Can I put any widget on the canvas? Overlapping or not?

I'm not a GTK expert but I joined to gtk-devel list to ask more:
is it possible to write a general layer widget which would be
a container cabable of containing any other widget? Then I could
put a drawing area widget to one layer and second one to other layer.
Well, this kind of layer widget would make sense if widgets cannot
overlap at the moment. One could even use hbox/vbox functions to
build distinct systems to distinct layers.

By the way, I made a viewport of size 800x800 and put a 400x400 drawing
area to it. The drawing area (and the pixmap!) ended to be 796x796 in
any case. Why? I tried to put two drawing areas to the same viewport just
to see if the smaller would be over the larger one. The feature above boils
the whole idea.

Hmm.. I actually don't want to be a GTK developer since I'm better at
elsewhere.

Yours,

Juhana



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]