From 308c930f37c7c00eb6791d53fced7d1c2ac9600e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 15 Oct 2009 14:11:36 +0100 Subject: [PATCH] layout, docs: Add long description for FlowLayout Add the full description of the layout policy --- clutter/clutter-flow-layout.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/clutter/clutter-flow-layout.c b/clutter/clutter-flow-layout.c index bec7ab068..bc81a679d 100644 --- a/clutter/clutter-flow-layout.c +++ b/clutter/clutter-flow-layout.c @@ -30,6 +30,22 @@ * policy: * * + * the preferred natural size depends on the value + * of the #ClutterFlowLayout:orientation property; the layout will try + * to maintain all its children on a single row or + * column; + * if either the width or the height allocated are + * smaller than the preferred ones, the layout will wrap; in this case, + * the preferred height or width, respectively, will take into account + * the amount of columns and rows; + * each line (either column or row) in reflowing will + * have the size of the biggest cell on that line; if the + * #ClutterFlowLayout:homogeneous property is set to %FALSE the actor + * will be allocated within that area, and if set to %TRUE instead the + * actor will be given exactly that area; + * the size of the columns or rows can be controlled + * for both minimum and maximum; the spacing can also be controlled + * in both columns and rows. * * * #ClutterFlowLayout is available since Clutter 1.2