1 using System.Diagnostics;
2 using System.ComponentModel;
4 namespace Tizen.NUI.Binding
7 /// Struct that defines minimum and maximum Sizes.
9 [DebuggerDisplay("Request={Request.Width}x{Request.Height}, Minimum={Minimum.Width}x{Minimum.Height}")]
10 [EditorBrowsable(EditorBrowsableState.Never)]
11 internal struct SizeRequest
14 /// The requested size.
16 public Size Request { get; set; }
19 /// The minimum acceptable size.
21 public Size Minimum { get; set; }
24 /// Creates a new SizeRequest object that requests at least the size minimum, but preferably the size request.
26 /// <param name="request">The size of the request.</param>
27 /// <param name="minimum">The minimum size for the request.</param>
28 public SizeRequest(Size request, Size minimum)
35 /// Creates a new SizeRequest with the specified request size.
37 /// <param name="request">The size of the request.</param>
38 public SizeRequest(Size request)
45 /// Returns a string representation of the size request.
47 /// <returns>a string representation of the size request.</returns>
48 public override string ToString()
50 return string.Format("{{Request={0} Minimum={1}}}", Request, Minimum);