Re: Word attachment...on linuxtoday


On Fri, 2002-01-18 at 18:52, Joe Shaw wrote:
> On Thu, 2002-01-17 at 20:30, Charles Iliya Krempeaux wrote:
> > I looked at librsvg before, but as I understand it, it renders an SVG
> > document into a static pixmap image.  So it is insufficient because I
> > need something dynamic.  (That I can do animations with.)
> The gdk-pixbuf library supports animations, so it might be worthwhile to
> look into adding support to librsvg to do that.  Doing things like
> mouseover and on-click handlers for certain parts of a document, though,
> would require quite some work by making it a widget, though.  But I
> don't think sodipodi supports these features either... (Lauris, please
> correct me if I'm wrong.)

Well, it kinda supports. The big differe is that librsvg renders
document in one shot to buffer, sodipodi creates something like
DOM tree. So implementing mouseovers etc. in librsvg means re-rendering
the whole thing again and again (correct me, if I am wrong), while
in sodipodi only affected object will be re-rendered (plus dirtyfied
area on top of it, to be exact).
There is very hackish mouseover and click handling, used only for
sodipodi 'about' dialog. But creating real one involves as little,
as replacing current drawing-bound (i.e. move, scale...) event handlers 
with some other ones (any vector drawing program has to provide
quite complex object event/modification/animation system for its own
Of course - due to persistent object tree, sodipodi requires enormously
more memory to render things than librsvg. Its better speed probably
only applies for relatively large and complex images - not for icon-size

Best wishes,
Lauris Kaplinski

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