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)); }
public static Rect GetRect(float width, float height, GUIStyle style, params GUILayoutOption[] options) { return(GUILayoutUtility.DoGetRect(width, width, height, height, style, options)); }
public static Rect GetRect(float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style) { return(GUILayoutUtility.DoGetRect(minWidth, maxWidth, minHeight, maxHeight, style, null)); }
public static Rect GetRect(float width, float height, GUIStyle style) { return(GUILayoutUtility.DoGetRect(width, width, height, height, style, null)); }
public static Rect GetRect(GUIContent content, GUIStyle style, params GUILayoutOption[] options) { return(GUILayoutUtility.DoGetRect(content, style, options)); }
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 & 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.<br> /// 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 & 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 & 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.<br> /// 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)); }