C# Class UnityEngine.GUILayoutUtility

Inheritance: Object
Datei anzeigen Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
Begin void
BeginGroup void
BeginLayoutArea GUILayoutGroup
BeginLayoutGroup GUILayoutGroup
BeginWindow void
CleanupRoots void
CreateGUILayoutGroupInstanceOfType GUILayoutGroup
DoBeginLayoutArea GUILayoutGroup
DoGetAspectRect Rect
DoGetRect Rect
DoGetRect Rect
EndGroup void
EndLayoutGroup void
GetWindowsBounds Rect
INTERNAL_CALL_GetWindowsBounds void
INTERNAL_CALL_Internal_GetWindowRect void
INTERNAL_CALL_Internal_MoveWindow void
Internal_GetWindowRect Rect
Internal_MoveWindow void
Layout void
LayoutFreeGroup void
LayoutFromEditorWindow void
LayoutFromInspector float
LayoutSingleGroup void
SelectIDList LayoutCache

Public Methods

Method Description
GetAspectRect ( float aspect ) : Rect

Reserve layout space for a rectangle with a specific aspect ratio.

GetAspectRect ( float aspect, GUIStyle style ) : Rect

Reserve layout space for a rectangle with a specific aspect ratio.

GetLastRect ( ) : Rect

Get the rectangle last used by GUILayout for a control.

GetRect ( GUIContent content, GUIStyle style ) : Rect

Reserve layout space for a rectangle for displaying some contents with a specific style.

GetRect ( float width, float height ) : Rect

Reserve layout space for a rectangle with a fixed content area.

GetRect ( float width, float height, GUIStyle style ) : Rect

Reserve layout space for a rectangle with a fixed content area.

GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight ) : Rect

Reserve layout space for a flexible rect.

GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style ) : Rect

Reserve layout space for a flexible rect.

Private Methods

Method Description
Begin ( int instanceID ) : void
BeginGroup ( string GroupName ) : void
BeginLayoutArea ( GUIStyle style, System layoutType ) : GUILayoutGroup
BeginLayoutGroup ( GUIStyle style, GUILayoutOption options, System layoutType ) : GUILayoutGroup
BeginWindow ( int windowID, GUIStyle style, GUILayoutOption options ) : void
CleanupRoots ( ) : void
CreateGUILayoutGroupInstanceOfType ( System LayoutType ) : GUILayoutGroup
DoBeginLayoutArea ( GUIStyle style, System layoutType ) : GUILayoutGroup
DoGetAspectRect ( float aspect, GUIStyle style, GUILayoutOption options ) : Rect
DoGetRect ( GUIContent content, GUIStyle style, GUILayoutOption options ) : Rect
DoGetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style, GUILayoutOption options ) : Rect
EndGroup ( string groupName ) : void
EndLayoutGroup ( ) : void
GetWindowsBounds ( ) : Rect
INTERNAL_CALL_GetWindowsBounds ( Rect &value ) : void
INTERNAL_CALL_Internal_GetWindowRect ( int windowID, Rect &value ) : void
INTERNAL_CALL_Internal_MoveWindow ( int windowID, Rect &r ) : void
Internal_GetWindowRect ( int windowID ) : Rect
Internal_MoveWindow ( int windowID, Rect r ) : void
Layout ( ) : void
LayoutFreeGroup ( GUILayoutGroup toplevel ) : void
LayoutFromEditorWindow ( ) : void
LayoutFromInspector ( float width ) : float
LayoutSingleGroup ( GUILayoutGroup i ) : void
SelectIDList ( int instanceID, bool isWindow ) : LayoutCache

Method Details

GetAspectRect() public static method

Reserve layout space for a rectangle with a specific aspect ratio.

public static GetAspectRect ( float aspect ) : Rect
aspect float The aspect ratio of the element (width / height).
return Rect

GetAspectRect() public static method

Reserve layout space for a rectangle with a specific aspect ratio.

public static GetAspectRect ( float aspect, GUIStyle style ) : Rect
aspect float The aspect ratio of the element (width / height).
style GUIStyle An optional style. If specified, the style's padding value will be added to the sizes of the returned rectangle & the style's margin values will be used for spacing.
return Rect

GetLastRect() public static method

Get the rectangle last used by GUILayout for a control.

public static GetLastRect ( ) : Rect
return Rect

GetRect() public static method

Reserve layout space for a rectangle for displaying some contents with a specific style.

public static GetRect ( GUIContent content, GUIStyle style ) : Rect
content GUIContent The content to make room for displaying.
style GUIStyle The GUIStyle to layout for.
return Rect

GetRect() public static method

Reserve layout space for a rectangle with a fixed content area.

public static GetRect ( float width, float height ) : Rect
width float The width of the area you want.
height float The height of the area you want.
return Rect

GetRect() public static method

Reserve layout space for a rectangle with a fixed content area.

public static GetRect ( float width, float height, GUIStyle style ) : Rect
width float The width of the area you want.
height float The height of the area you want.
style GUIStyle 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.
return Rect

GetRect() public static method

Reserve layout space for a flexible rect.

public static GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight ) : Rect
minWidth float The minimum width of the area passed back.
maxWidth float The maximum width of the area passed back.
minHeight float The minimum width of the area passed back.
maxHeight float The maximum width of the area passed back.
return Rect

GetRect() public static method

Reserve layout space for a flexible rect.

public static GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style ) : Rect
minWidth float The minimum width of the area passed back.
maxWidth float The maximum width of the area passed back.
minHeight float The minimum width of the area passed back.
maxHeight float The maximum width of the area passed back.
style GUIStyle 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.
return Rect