docs: Add fixed size and constraints to the size negotiation docs

This commit is contained in:
Emmanuele Bassi 2011-07-19 14:11:11 +01:00
parent e1327f5591
commit 5cc5e566e6

View File

@ -83,3 +83,16 @@ graph. The same will happen for (f).
The child (g) has the same size, but its needs_* flags will have been cleared, The child (g) has the same size, but its needs_* flags will have been cleared,
so its allocate() implementation will be invoked; this will cause the (h) and so its allocate() implementation will be invoked; this will cause the (h) and
(i) children to be allocated as well. (i) children to be allocated as well.
Fixed preferred size
--------------------
If an actor has a fixed size then that size will take precedence over the cached
size and the actor's implementation of the get_preferred_* virtual functions.
Constraints
-----------
Constraints only affect the allocation phase; each constraint is allowed to
modify the allocation passed to clutter_actor_allocate(), before it will be
checked and eventually discarded.