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

Evan Martin evan at chromium.org
Thu Oct 18 13:48:52 PDT 2012

What you've described is roughly how windowless plugins work.  Have you
considered just making a plugin?


On Sat, Oct 13, 2012 at 5:46 PM, Daniel Campos <dcamposf at gmail.com> wrote:

> Hi all:
> 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).
> I tried to use the "create-plugin-widget" signal with a custom object as a
> workaround, but unfortunately the widget is placed on top of everything
> drawn by webkit-gtk, so I can not fulfill my need of having my custom
> element in a certain layer, with other elements over it.
> I looked for all the documentation available in the webkit-gtk place plus
> the one by Apple and even the source headers, but I was unlucky.
> Any ideas?
> Thanks in advance
> Daniel
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-gtk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20121018/2ad3a479/attachment.html>

More information about the webkit-gtk mailing list