Next: 1.10 How AutoLayout flags Up: 1. Renaissance AutoLayout Previous: 1.8 How expanding flags

  
1.9 AutoLayout flags

Each view has two expand/align flags, one for the horizontal, and the other one for the vertical direction. Such flags describe how the view should be treated with respect to additional space which could be made available. 'Additional space' means 'space in addition to the minimum required to display the view'. The flags for a view are generally managed (and stored) in the container which contains the view. Different containers will react to flags in different ways, particularly to the align values of the flags.

Each of the horizontal and vertical flag of a view can take a value from the following enumeration:

typedef enum 
{
  GSAutoLayoutExpand = 0,
  GSAutoLayoutWeakExpand = 1,
  GSAutoLayoutAlignMin = 2,
  GSAutoLayoutAlignCenter = 3,
  GSAutoLayoutAlignMax = 4
} GSAutoLayoutAlignment;

These values are now described fully.


Next: 1.10 How AutoLayout flags Up: 1. Renaissance AutoLayout Previous: 1.8 How expanding flags
2008-03-19