File: Core\ICrossPlatformLayout.cs
Web Access
Project: src\src\Core\src\Core.csproj (Microsoft.Maui)
using Microsoft.Maui.Graphics;
 
namespace Microsoft.Maui
{
	public interface ICrossPlatformLayout
	{
		/// <summary>
		/// Measures the desired size of the ICrossPlatformLayout within the given constraints.
		/// </summary>
		/// <param name="widthConstraint">The width limit for measuring the ICrossPlatformLayout.</param>
		/// <param name="heightConstraint">The height limit for measuring the ICrossPlatformLayout.</param>
		/// <returns>The desired size of the ILayout.</returns>
		Size CrossPlatformMeasure(double widthConstraint, double heightConstraint);
 
		/// <summary>
		/// Arranges the children of the ICrossPlatformLayout within the given bounds.
		/// </summary>
		/// <param name="bounds">The bounds in which the ICrossPlatformLayout's children should be arranged.</param>
		/// <returns>The actual size of the arranged ICrossPlatformLayout.</returns>
		Size CrossPlatformArrange(Rect bounds);
	}
}