class
EditorWindowTabGroup
A GUI object that contains one or multiple dockable editor windows.
Each window is represented by a single tab and can be activated, deactivated, moved or dragged off.
Public
Constructors
EditorWindowTabGroup
Methods
~EditorWindowTabGroup
Add
Adds a new window to the container, adding a new tab to the end of the tab bar.
Insert
Inserts a window at the specified index, adding a new tab at that position.
- index
- Sequential index where to insert the window.
- window
- Window to insert.
Contains
Checks if the container already contains the provided window.
SetSize
Sets the size of the container in pixels.
This also modifies the size of all docked windows.
SetPosition
Sets the position of the container, relative to the parent GUI widget.
This also modifies the position of all docked windows.
SetActiveWindow
Changes the currently active window to the one at the specified index.
Making the window active means it will be visible in the container.
- windowId
- Unique window ID (not sequential).
GetDockedWindowCount
Returns the number of windows currently docked in this container.
GetWindow
Returns a window at the specified sequential index.
GetActiveWindow
Returns a window that is currently visible (its tab is active).
GetParentGUIWidget
Returns the parent GUI widget the container is using to render the GUI on.
GetParentWindow
Returns the parent key editor window the container is docked in.
GetContentBounds
Returns bounds not including the tabbed title bar.
These are the bounds available to docked window GUI elements.
GetDraggableAreas
Returns a list of areas that can be dragged off.
These are normally areas represented by tab buttons.
Update
Called once per frame.
Calls update on all docked windows.
RefreshWindowNames
Updates the tabbed title bar by refreshing the names of all docked windows.
NotifyDockedWindowWillBeDestroyed
Triggers when a docked window is about to be destroyed.
TabGroupToWindowContentSize
Returns the size of a docked window's content area, if the tab group is the specified size.
Tab group and docked window content sizes are different due to the title bar and potentially other window-specific GUI elements.
WindowContentSizeToTabGroupSize
Returns the required size of the tab group if the docked window has the provided content area size.
Tab group and docked window content sizes are different due to the title bar and potentially other window-specific GUI elements.
Fields
Private
Methods
RemoveInternal
Removes a window without triggering a window closed event.
DoOnTabActivated
Triggered when a user clicks on a tab in the tabbed title bar.
DoOnTabClosed
Triggered when a user closes a tab in the tabbed title bar.
DoOnTabMaximized
Triggered when a user clicks the maximize button on the title bar.
DoOnTabDraggedOff
Triggered when a user drags a tab off the tabbed title bar.
DoOnTabDraggedOn
Triggered when a user drags a tab on the tabbed title bar.
staticDoOnTabDropped
Triggered when the window drag and drop operation finishes.
- wasDragProcessed
- Signals whether any object handled the drop.