using System;
using System.Drawing;

namespace nft.controls
{
	/// <summary>
	/// ILayoutManagedControl の概要の説明です。
	/// </summary>
	public interface ILayoutManagedControl
	{
		/// <summary>
		/// Layout control along X-axis in order to fit within specified height
		/// </summary>
		/// <param name="maxHeight"></param>
		/// <returns>size of layouted control</returns>
		Size LayoutHorizontal(int maxHeight);

		/// <summary>
		/// Layout control along Y-axis in order to fit within specified width
		/// </summary>
		/// <param name="maxWidth"></param>
		/// <returns>size of layouted control</returns>
		Size LayoutVirtical(int maxWidth);
	}
}
