Re: [gtk-list] Re: GnomeCanvas widget



> The Tk canvas is essentially a (limited) object oriented (as
> opposed to pixel-based) drawing program in a widget.  So you can
> create circle objects, and line objects, and text objects, and then
> move them around, change their layering order, tag collections of them
> and refer to these collections as a "grouped" object, etc.  It also
> supports dumping any of it's contents to a postscript string.
> 
> A drawing area on the other hand is just a widget that lets you do
> whatever you want in its window.  You could build a canvas widget on
> top of a drawing area widget, bit a drawing area widget is far more
> primitive.

I'm currently working a bit on a gtk based clone of 'Visio'. It has something 
like this but a bit more complex. Objects can be connected to each other and 
respond to user interaction. It also has a 'target' interface for rendering, 
gdk renderer exists, postscript planned. Unfortunately it's not a 'widget' per 
se. but rather lots of code drawing in a drawing area.

It has quite a flexible object model, object definitions are supposed to be 
read in from shared libraries so that people can extend the program to 
different types of usages: UML, network diagrams, organisational charts, 
flowcharts, stuff...

It is far from useful though, but it compiles and shows stuff, and the user 
can connect objects and move them around. It might be usable some day. Planing 
on doing text/font support this weekend, but it looks a bit hard...

/Alex





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