M
Mathieu Leplatre
I would like to implement a SVG canvas in which mouse events on shapes
can be handled by my program (C, python or Java...). On events, I want
to manipulate the shapes (changing color, stroke, position, size...).
Why ?
- Events on complex vectorial shapes (like countries or regions in a
map) are impossible to implement with a coordinates system
- I could design the elements of my small application/game with a SVG
editor (nice gradients etc.)
I would need :
- a SVG rendering lib (librsvg, Cairo,...)
- a SVG DOM API to manipulate shapes
- a simple SVG event system to bind mouse events to pieces of code in
C,python or Java...
I know you could easily do it with Javascript/emacs scripts within a
browser.
Some guyz recommended to look at WebKit or Gecko, but I don't like
including such a big engine for a small app.
I heard that a Cairo team was working on a SVG DOM API, and that
Inkscape were not ready yet to refactor their core into a events/DOM
library.
Where do you recommend me to start ?
Is there a magic component or workaround ?
Thank you all, hope I am not asking too much.
Mat.
can be handled by my program (C, python or Java...). On events, I want
to manipulate the shapes (changing color, stroke, position, size...).
Why ?
- Events on complex vectorial shapes (like countries or regions in a
map) are impossible to implement with a coordinates system
- I could design the elements of my small application/game with a SVG
editor (nice gradients etc.)
I would need :
- a SVG rendering lib (librsvg, Cairo,...)
- a SVG DOM API to manipulate shapes
- a simple SVG event system to bind mouse events to pieces of code in
C,python or Java...
I know you could easily do it with Javascript/emacs scripts within a
browser.
Some guyz recommended to look at WebKit or Gecko, but I don't like
including such a big engine for a small app.
I heard that a Cairo team was working on a SVG DOM API, and that
Inkscape were not ready yet to refactor their core into a events/DOM
library.
Where do you recommend me to start ?
Is there a magic component or workaround ?
Thank you all, hope I am not asking too much.
Mat.