C# Class UnityEditor.DockArea

Inheritance: HostView, IDropArea
显示文件 Open project: randomize/VimConfig Class Usage Examples

Private Properties

Property Type Description
AddTabToHere void
CheckDragWindowExists void
Close void
DragTab void
GetTabAtMousePos int
GetTabWidth float
Initialize void
KillIfEmpty void
Maximize void
RemoveNullWindows void
ResetDragVars void

Public Methods

Method Description
AddTab ( EditorWindow pane ) : void
AddTab ( int idx, EditorWindow pane ) : void
BeginOffsetArea ( Rect screenRect, GUIContent content, GUIStyle style ) : void
DockArea ( ) : System
DragOver ( EditorWindow window, Vector2 mouseScreenPosition ) : DropInfo
EndOffsetArea ( ) : void
OnDestroy ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
PerformDrop ( EditorWindow w, DropInfo info, Vector2 screenPos ) : bool
RemoveTab ( EditorWindow pane ) : void
RemoveTab ( EditorWindow pane, bool killIfEmpty ) : void

Protected Methods

Method Description
AddDefaultItemsToMenu ( GenericMenu menu, EditorWindow view ) : void
GetBorderSize ( ) : RectOffset

Private Methods

Method Description
AddTabToHere ( object userData ) : void
CheckDragWindowExists ( ) : void
Close ( object userData ) : void
DragTab ( Rect pos, GUIStyle tabStyle ) : void
GetTabAtMousePos ( Vector2 mousePos, Rect position ) : int
GetTabWidth ( float width ) : float
Initialize ( ContainerWindow win ) : void
KillIfEmpty ( ) : void
Maximize ( object userData ) : void
RemoveNullWindows ( ) : void
ResetDragVars ( ) : void

Method Details

AddDefaultItemsToMenu() protected method

protected AddDefaultItemsToMenu ( GenericMenu menu, EditorWindow view ) : void
menu GenericMenu
view EditorWindow
return void

AddTab() public method

public AddTab ( EditorWindow pane ) : void
pane EditorWindow
return void

AddTab() public method

public AddTab ( int idx, EditorWindow pane ) : void
idx int
pane EditorWindow
return void

BeginOffsetArea() public static method

public static BeginOffsetArea ( Rect screenRect, GUIContent content, GUIStyle style ) : void
screenRect UnityEngine.Rect
content UnityEngine.GUIContent
style UnityEngine.GUIStyle
return void

DockArea() public method

public DockArea ( ) : System
return System

DragOver() public method

public DragOver ( EditorWindow window, Vector2 mouseScreenPosition ) : DropInfo
window EditorWindow
mouseScreenPosition Vector2
return DropInfo

EndOffsetArea() public static method

public static EndOffsetArea ( ) : void
return void

GetBorderSize() protected method

protected GetBorderSize ( ) : RectOffset
return UnityEngine.RectOffset

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

PerformDrop() public method

public PerformDrop ( EditorWindow w, DropInfo info, Vector2 screenPos ) : bool
w EditorWindow
info DropInfo
screenPos Vector2
return bool

RemoveTab() public method

public RemoveTab ( EditorWindow pane ) : void
pane EditorWindow
return void

RemoveTab() public method

public RemoveTab ( EditorWindow pane, bool killIfEmpty ) : void
pane EditorWindow
killIfEmpty bool
return void