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
widgetsIEnumerable<Widget>The widgets to arrange.
boundsRectangleThe 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
widgetsIEnumerable<Widget>The widgets to measure.
availableSizePointThe available size for layout.
Returns
- Point
The desired size needed to display all widgets.