[actor] Add :clip-to-allocation property
authorHavoc Pennington <hp@pobox.com>
Mon, 16 Mar 2009 11:58:58 +0000 (11:58 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 16 Mar 2009 12:13:55 +0000 (12:13 +0000)
commit570610512364223937543c010a6133c0d2b3dab1
treeddba92dfa44973bf610985821d213a2da19c47d1
parent0cb0a841cc56c7912b59973dddc9e157fba7e0f5
[actor] Add :clip-to-allocation property

A common use of setting clip is to keep an actor inside its allocation;
right now to do this you have to set up a callback on notify::allocation.

There's no overhead added by sticking another bit in ClutterActor
clip-to-allocation that will clip painting to the allocation if set.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/clutter-actor.c