summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native/IMeasurable.cs
blob: 13ee1c1270aca554e47ab1981843c5c0b26d0ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using ESize = ElmSharp.Size;

namespace Xamarin.Forms.Platform.Tizen.Native
{
	/// <summary>
	/// Interface of the controls which can measure their size taking into
	/// account the available area.
	/// </summary>
	public interface IMeasurable
	{
		/// <summary>
		/// Measures the size of the control in order to fit it into the
		/// available area.
		/// </summary>
		/// <param name="availableWidth">Available width.</param>
		/// <param name="availableHeight">Available height.</param>
		/// <returns>Size of the control that fits the available area.</returns>
		ESize Measure(int availableWidth, int availableHeight);
	}
}