geert at boskant.nl
Sat Jan 5 10:47:57 PST 2008
what would it take to add a new backend to Cairo that outputs a HTML5
<canvas> a little bit and the imaging model looks very similar to
Cairo's (maybe this is not coincidental). Documentation on <canvas> as
implemented in Firefox can be found here:
Why add a canvas backend you may ask? Well, I thought it would be cool
to see if it is possible to port GTK+ to the web browser. With this I
mean that you'd be able to run a GTK+ app on a Linux system and instead
of displaying on X11 you'd display to a (possibly remote) web browser.
GTK uses Cairo for rendering. You'd need some Ajax/Comet infrastructure
and send events such as mouse events and key presses back. Unless I'm
overseeing something big this should be sufficient to display a
conventional desktop application on the web..
What do you think?
More information about the cairo