Table of Contents

Interface ILayout

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

Defines the interface for layout systems that measure and arrange widgets.

public interface ILayout

Methods

Arrange(IEnumerable<Widget>, Rectangle)

Arranges the widgets within the specified bounds.

void Arrange(IEnumerable<Widget> widgets, Rectangle bounds)

Parameters

widgets IEnumerable<Widget>

The widgets to arrange.

bounds Rectangle

The bounds in which to arrange the widgets.

Measure(IEnumerable<Widget>, Point)

Measures the desired size of widgets within the given available size.

Point Measure(IEnumerable<Widget> widgets, Point availableSize)

Parameters

widgets IEnumerable<Widget>

The widgets to measure.

availableSize Point

The available size for layout.

Returns

Point

The desired size needed to display all widgets.