docs: Add recipe about implementing a ClutterEffect
authorElliot Smith <elliot.smith@intel.com>
Wed, 16 Mar 2011 17:44:44 +0000 (17:44 +0000)
committerElliot Smith <elliot.smith@intel.com>
Thu, 17 Mar 2011 15:56:55 +0000 (15:56 +0000)
commitb5af8fbfac405b26fc356ecd27b1eb4de530d838
tree2932aa3da09fc99bc81dbb5c93e8dad23053992e
parent5732b1184f013ce9ca33580e214d60400f00d271
docs: Add recipe about implementing a ClutterEffect

Add a recipe showing how to implement two simple
effects, based on ClutterEffect: an always gray background,
and a border with configurable width and color.

Also explains the necessity to queue a redraw on
the associated actor if the effect's properties change,
and shows how to implement that.

The example gives the GObject code for both effects,
as well as an example application showing how to use them.
The example also demonstrates how to disable/enable an effect,
making the border round an actor togglable.
doc/cookbook/Makefile.am
doc/cookbook/effects.xml
doc/cookbook/images/effects-basic-background.png [new file with mode: 0644]
doc/cookbook/images/effects-basic.png [new file with mode: 0644]