Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Docking/SDockTab.h |
Include |
#include "Widgets/Docking/SDockTab.h" |
class SDockTab : public SBorder
A tab widget that also holds on to some content that should be shown when this tab is selected. Intended to be used in conjunction with SDockingTabStack.
Name | Description | ||
---|---|---|---|
|
bool |
bCanEverClose |
Determines whether the close button for the tab is shown. |
|
bool |
bShouldAutosize |
Should this tab be auto-sized based on its content? |
|
TSharedRef< SWi... |
Content |
The stuff to show when this tab is selected |
|
TAttribute< FMa... |
ContentAreaPadding |
|
|
TSharedPtr< SDo... |
DraggedOverDockingArea |
The dock area this tab is currently being dragged over. Used in nomad tabs to change style |
|
FlashTabCurve |
Animation that causes the tab to flash |
|
|
const FDockTabS... |
GenericTabStyle |
|
|
TAttribute< FLi... |
IconColor |
Color of this tab's icon |
|
TSharedPtr< SIm... |
IconWidget |
Widget used to show the icon on the tab |
|
TSharedPtr< STe... |
LabelSuffix |
|
|
TSharedPtr< STe... |
LabelWidget |
Widget used to show the label on the tab |
|
double |
LastActivationTime |
Time this tab was last activated |
|
LayoutIdentifier |
The tab's layout identifier |
|
|
const FDockTabS... |
MajorTabStyle |
The styles used to draw the tab in its various states |
|
MyTabManager |
The tab manager that created this tab. |
|
|
OnCanCloseTab |
Delegate to execute to determine if we can close this tab |
|
|
OnExtendContextMenu |
||
|
OnPersistVisualState |
Invoked during the Save Visual State pass; gives this tab a chance to save misc info about visual state. |
|
|
OnTabActivated |
Callback to call when this tab is activated |
|
|
OnTabClosed |
Callback to call when this tab is destroyed |
|
|
FSimpleDelegate |
OnTabDraggedOverDockArea |
|
|
FSimpleDelegate |
OnTabDrawerClosedEvent |
|
|
FSimpleDelegate |
OnTabDrawerOpenedEvent |
|
|
FSimpleDelegate |
OnTabRelocated |
|
|
OnTabRenamed |
Invoked when the tab is renamed |
|
|
TWeakPtr< SDock... |
ParentPtr |
The tab's parent tab well. Null if it is a floating tab. |
|
SpawnAnimCurve |
Animation that shows the tab opening up |
|
|
TAttribute< FLi... |
TabColorScale |
Color of this tab |
|
TAttribute< con... |
TabIcon |
The icon on the tab |
|
TAttribute< FTe... |
TabLabel |
The label on the tab |
|
TAttribute< FTe... |
TabLabelSuffix |
A second text field at the end of the Label that takes precedence and isn't lost when space is restricted |
|
ETabRole |
TabRole |
Is this an MajorTab? A tool panel tab? |
|
TSharedRef< SWi... |
TabWellContentLeft |
|
|
TSharedRef< SWi... |
TabWellContentRight |
|
|
TSharedRef< SWi... |
TitleBarContentRight |
Name | Description | |
---|---|---|
|
SDockTab() |
Protected constructor; Widgets may only be constructed via a FArguments (i.e.: SNew(SDockTab) ) |
Name | Description | ||
---|---|---|---|
|
void |
ActivateInParent ( |
Make this tab active in its tabwell |
|
bool |
CanCloseTab() |
|
|
void |
Construct ( |
Construct the widget from the declaration. |
|
void |
DrawAttention() |
Draws attention to the tab. |
|
void |
ExtendContextMenu ( |
Add any entries specific to this tab to the tab context menu |
|
void |
FlashTab() |
Flash the tab, used for drawing attention to it |
|
GetActiveTabIndicatorVisibility() |
||
|
UE::Slate::F... |
GetAnimatedScale() |
|
|
GetCloseButtonToolTipText() |
The close button tooltip showing the appropriate close command shortcut |
|
|
const FSlate... |
GetColorOverlayImageBrush() |
|
|
TSharedRef< ... |
GetContent() |
|
|
const FSlate... |
GetContentAreaBrush() |
What should the content area look like for this type of tab? Documents, Apps, and Tool Panels have different backgrounds. |
|
GetContentPadding() |
Padding around the content when it is presented by the SDockingTabStack |
|
|
const FDockT... |
GetCurrentStyle() |
|
|
TSharedPtr< ... |
GetDockArea() |
Gets the dock area that this resides in |
|
GetFlashColor() |
||
|
const FSlate... |
GetFlashOverlayImageBrush() |
|
|
float |
GetFlashValue() |
Get the desired color of tab. These change during flashing. |
|
GetIconColor() |
||
|
const FSlate... |
GetImageBrush() |
|
|
double |
GetLastActivationTime() |
Returns the time this tab was last activated |
|
const FTabId |
GetLayoutIdentifier() |
Gets this tab's layout identifier |
|
TSharedRef< ... |
GetLeftContent() |
|
|
float |
GetOverlapWidth() |
The width that this tab will overlap with side-by-side tabs. |
|
TSharedPtr< ... |
GetParent() |
Gets the tab's tab well parent, or nothing, if it has none |
|
TSharedPtr< ... |
GetParentDockTabStack() |
Gets the dock tab stack this dockable tab resides within, if any |
|
TSharedPtr< ... |
GetParentWindow() |
Get the window in which this tab's tabmanager has placed it |
|
TSharedRef< ... |
GetRightContent() |
|
|
GetTabColor() |
||
|
const FSlate... |
GetTabIcon() |
Gets the tab icon |
|
GetTabIconBorderPadding() |
||
|
TOptional< F... |
GetTabIconSize() |
|
|
GetTabLabel() |
The label on the tab |
|
|
GetTabLabelSuffix() |
Get Label Suffix |
|
|
TSharedPtr< ... |
GetTabManagerPtr() |
Get the tab manager currently managing this tab. |
|
GetTabPadding() |
||
|
ETabRole |
GetTabRole() |
Is this an MajorTab? A tool panel tab? |
|
const FSlate... |
GetTabWellBrush() |
Depending on the tabs we put into the tab well, we want a different background brush. |
|
TSharedRef< ... |
GetTitleBarRightContent() |
|
|
ETabRole |
GetVisualTabRole() |
Similar to GetTabRole() but returns the correct role for UI style and user input purposes |
|
HandleIsCloseButtonVisible() |
||
|
bool |
HasSiblingTab ( |
Check to see whether this tab has a sibling tab with the given tab ID |
|
bool |
IsActive() |
|
|
bool |
IsForeground() |
|
|
OnCloseButtonClicked() |
Called when the close button is clicked on the tab. |
|
|
void |
PersistVisualState() |
A chance for the tab's content to save any internal layout info |
|
void |
PlaySpawnAnim() |
Play an animation showing this tab as opening |
|
void |
ProvideDefaultIcon ( |
Provide a default tab icon. |
|
void |
ProvideDefaultLabel ( |
Provide a default tab label in case the spawner did not set one. |
|
void |
RemoveTabFromParent() |
Pulls this tab out of it's parent tab stack and destroys it Note: This does not check if its safe to remove the tab. |
|
bool |
RequestCloseTab() |
Requests that the tab be closed. Tabs may prevent closing depending on their state |
|
void |
SetCanCloseTab ( |
Set the handler to be invoked when the user requests that this tab be closed. |
|
void |
SetDraggedOverDockArea ( |
Used by the drag/drop operation to signal to this tab what it is dragging over. |
|
void |
SetLabel ( |
The label that appears on the tab. |
|
void |
SetLayoutIdentifier ( |
Specify the TabId that was used to spawn this tab. |
|
void |
SetLeftContent ( |
Content that appears in the TabWell to the left of the tabs |
|
void |
SetOnExtendContextMenu ( |
Set the handler for extending the tab context menu |
|
void |
SetOnPersistVisualState ( |
Set the custom code to execute for saving visual state in this tab. |
|
void |
SetOnTabActivated ( |
Set the handler that will be invoked when the tab is activated |
|
void |
SetOnTabClosed ( |
Set the handler that will be invoked when the tab is closed |
|
void |
SetOnTabDraggedOverDockArea ( |
Set the handler that will be invoked when the tab is dragged over dock area |
|
void |
SetOnTabDrawerClosed ( |
Set the handler that will be invoked when the tab is closed from a drawer |
|
void |
SetOnTabDrawerOpened ( |
Set the handler that will be invoked when the tab is opened from a drawer |
|
void |
SetOnTabRelocated ( |
Set the handler that will be invoked when the tab is relocated to a new tab well |
|
void |
SetOnTabRenamed ( |
Set the handler that will be invoked when the tab is renamed |
|
void |
SetParent ( |
Sets the tab's tab well parent, or resets it if nothing is passed in |
|
void |
SetRightContent ( |
Content that appears in the TabWell to the right of the tabs |
|
void |
SetShouldAutosize ( |
Set whether this tab should be sized based on its content. |
|
void |
SetTabIcon ( |
Sets the tab icon |
|
void |
SetTabLabelSuffix ( |
Set Label Suffix. |
|
void |
SetTabManager ( |
Set the tab manager that is controlling this tab |
|
void |
SetTabToolTipWidget ( |
The tooltip text that appears on the tab. |
|
void |
SetTitleBarRightContent ( |
Content that appears on the right side of the title bar in the window this stack is in |
|
bool |
ShouldAutosize() |
Should this tab be sized based on its content. |
|
void |
UpdateActivationTime() |
Updates the 'last activated' time to the current time |
Name | Description | ||
---|---|---|---|
|
void |
SetContent ( |
Sets the content for this border |
Name | Description | ||
---|---|---|---|
|
GetForegroundColor() |
||
|
OnDragDetected ( |
Called when Slate detects that a widget started to be dragged. |
|
|
void |
OnDragEnter ( |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. |
|
void |
OnDragLeave ( |
Called during drag and drop when the drag leaves a widget. |
|
OnDrop ( |
Called when the user is dropping something onto a widget; terminates drag and drop. |
|
|
OnMouseButtonDoubleClick ( |
Called when a mouse button is double clicked. Override this in derived classes. |
|
|
OnMouseButtonDown ( |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. |
|
|
OnMouseButtonUp ( |
The system calls this method to notify the widget that a mouse button was release within it. |
|
|
OnTouchEnded ( |
Called when a touchpad touch is ended (finger lifted) |
|
|
OnTouchStarted ( |
Called when a touchpad touch is started (finger down) |
Name |
Description |
|
---|---|---|
|
FArguments |
Name |
Description |
---|---|
FCanCloseTab |
Delegate called before a tab is closed. Returning false will prevent the tab from closing |
FExtendContextMenu |
Invoked to add entries to the tab context menu |
FOnPersistVisualState |
Invoked w`en this tab should save some information about its content. |
FOnTabActivatedCallback |
Invoked when a tab is activated |
FOnTabClosedCallback |
Invoked when a tab is closing |
FOnTabRenamed |
Invoked when a tab is renamed |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
GetTabManager() |
The tab manager is not guaranteed to exist, which will cause GetTabManager() to crash. Use GetTabManagerPtr() instead. |