DoGetRect() приватный статический Метод

private static DoGetRect ( GUIContent content, GUIStyle style, GUILayoutOption options ) : Rect
content GUIContent
style GUIStyle
options GUILayoutOption
Результат Rect
Пример #1
0
 public static Rect GetRect(float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style, params GUILayoutOption[] options)
 {
     return(GUILayoutUtility.DoGetRect(minWidth, maxWidth, minHeight, maxHeight, style, options));
 }
Пример #2
0
 public static Rect GetRect(float width, float height, GUIStyle style, params GUILayoutOption[] options)
 {
     return(GUILayoutUtility.DoGetRect(width, width, height, height, style, options));
 }
Пример #3
0
 public static Rect GetRect(float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style)
 {
     return(GUILayoutUtility.DoGetRect(minWidth, maxWidth, minHeight, maxHeight, style, null));
 }
Пример #4
0
 public static Rect GetRect(float width, float height, GUIStyle style)
 {
     return(GUILayoutUtility.DoGetRect(width, width, height, height, style, null));
 }
Пример #5
0
 public static Rect GetRect(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
 {
     return(GUILayoutUtility.DoGetRect(content, style, options));
 }
Пример #6
0
 public static Rect GetRect(GUIContent content, GUIStyle style)
 {
     return(GUILayoutUtility.DoGetRect(content, style, null));
 }
 /// <summary>
 ///   <para>Reserve layout space for a flexible rect.</para>
 /// </summary>
 /// <param name="minWidth">The minimum width of the area passed back.</param>
 /// <param name="maxWidth">The maximum width of the area passed back.</param>
 /// <param name="minHeight">The minimum width of the area passed back.</param>
 /// <param name="maxHeight">The maximum width of the area passed back.</param>
 /// <param name="style">An optional style. If specified, the style's padding value will be added to the sizes requested &amp; the style's margin values will be used for spacing.</param>
 /// <param name="options">An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the style.&lt;br&gt;
 /// See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight,
 /// GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.</param>
 /// <returns>
 ///   <para>A rectangle with size between minWidth &amp; maxWidth on both axes.</para>
 /// </returns>
 public static Rect GetRect(float minWidth, float maxWidth, float minHeight, float maxHeight)
 {
     return(GUILayoutUtility.DoGetRect(minWidth, maxWidth, minHeight, maxHeight, GUIStyle.none, (GUILayoutOption[])null));
 }
 /// <summary>
 ///   <para>Reserve layout space for a rectangle with a fixed content area.</para>
 /// </summary>
 /// <param name="width">The width of the area you want.</param>
 /// <param name="height">The height of the area you want.</param>
 /// <param name="style">An optional GUIStyle to layout for. If specified, the style's padding value will be added to your sizes &amp; its margin value will be used for spacing.</param>
 /// <param name="options">An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the style.&lt;br&gt;
 /// See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight,
 /// GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.</param>
 /// <returns>
 ///   <para>The rectanlge to put your control in.</para>
 /// </returns>
 public static Rect GetRect(float width, float height)
 {
     return(GUILayoutUtility.DoGetRect(width, width, height, height, GUIStyle.none, (GUILayoutOption[])null));
 }