Composite.layout

Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarchy of the changed control up to and including the receiver. The layouts in the hierarchy must not rely on any information cached about the changed control or any of its ancestors. The layout may (potentially) optimize the work it is doing by assuming that none of the peers of the changed control have changed state since the last layout. If an ancestor does not have a layout, skip it. <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>

@param changed a control that has had a state change which requires a recalculation of its size

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the changed array is null any of its controls are null or have been disposed</li> <li>ERROR_INVALID_PARENT - if any control in changed is not in the widget tree of the receiver</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@since 3.1

  1. void layout()
  2. void layout(bool changed)
  3. void layout(bool changed, bool all)
  4. void layout(Control[] changed)
    class Composite
    void
    layout

Meta