actor: Add paint_node virtual function
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 1 Feb 2012 17:47:15 +0000 (17:47 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Mar 2012 12:33:35 +0000 (12:33 +0000)
commit6f0782e0a41deb34e8eeedd492d33f1efa8b3a90
tree433f6f459ecc13fca5c896fd6d0f93b1e6eeab28
parentb83dc6abfaed4ac16af2cad412d6382f5b0aa427
actor: Add paint_node virtual function

The ::paint-node virtual inside ClutterActor is what we want people to
use when painting their actors.

Right now, it's a new code path, that gets called while painting; the
paint_node() implementation should only paint the actor itself, and not
its children — they will get their own paint_node() called when needed.

Internally, ClutterActor will automatically create a dummy PaintNode and
paint the background color; then control will be handed out to the
implementation on the class. This is required to maintain compatibility
with the old ::paint signal emission.

Once we are able to get rid of the paint (and pick) sequences, we'll
switch to a fully retained render tree.
clutter/clutter-actor.c
clutter/clutter-actor.h