[webkit-gtk] A way to draw on a node?

Gustavo Noronha Silva gns at gnome.org
Thu Oct 18 07:02:26 PDT 2012

On Dom, 2012-10-14 at 02:46 +0200, Daniel Campos wrote:
> I've been using webkit-gtk for a while and I was wondering whether
> there might be a method to do custom draw on a chosen node, let's say
> a DIV, for instance, or any other element. The idea would be something
> that allows me to receive the cairo context and the surface and be
> able to draw there by following the order in which elements are
> redrawn, that is, receiving an event while webkit-gtk is redrawing the
> surface before other elements in upper layers are drawn (z-index).

There is no way of getting the cairo context used by WebKitGTK+ itself.
You can probably do what you want using the HTML5 canvas through the DOM
bindings, though.


Gustavo Noronha Silva <gns at gnome.org>
GNOME Project

More information about the webkit-gtk mailing list