cookbook: Add recipe about sync'ing actor sizes
authorElliot Smith <elliot.smith@intel.com>
Thu, 16 Sep 2010 14:55:21 +0000 (15:55 +0100)
committerElliot Smith <elliot.smith@intel.com>
Fri, 17 Sep 2010 14:58:48 +0000 (15:58 +0100)
commite92b18671905f5690320883cc4854dd76dc17d15
treece51a5bb1a628e13f98c2670bb8b1124cac9b4b4
parentc3cbf1533fdb6174894f38d5956802ce46df4238
cookbook: Add recipe about sync'ing actor sizes

The recipe covers how to use ClutterBindConstraint
to bind actor sizes together.

It gives some examples of where this approach is appropriate,
as well as explaining an alternative using allocation-changed
or notify::* signals.

Three examples are given:

1. Resizing a texture to the stage.
2. Resizing a rectangle to act as a transparent overlay on
top of a texture (using constraints).
3. Resizing a rectangle to act as a transparent overlay on
top of a texture, but with a size proportional to the texture
(using a handler connected to allocation-changed signals
emitted by the texture).
doc/cookbook/Makefile.am
doc/cookbook/images/layouts-bind-constraint-stage.png [new file with mode: 0644]
doc/cookbook/layouts.xml