engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
SDockableTab类 参考

A tab widget that also holds on to some content that should be shown when this tab is selected. 更多...

#include <SDockableTab.h>

Public 成员函数

void ActivateInParent (ETabActivationCause InActivationCause)
 Make this tab active in its tabwell 更多...
 
void BringToFrontInParent ()
 Brings this tab to the front of its parent's tab well, if applicable.
 
void Construct (const FArguments &InArgs)
 Construct the widget from the declaration.
 
TSharedRef< SWidget > GetContent ()
 
TSharedPtr< SDockTabStack > GetParentDockTabStack () const
 Gets the dock tab stack this dockable tab resides within, if any
 
bool IsActive () const
 
bool IsForeground () const
 
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. 更多...
 
void RequestCloseTab ()
 Requests that the tab be closed. 更多...
 
void SetOnTabStackMenuOpening (const FOnTabStackMenuOpening &InHandler)
 Set delegate to invoke when tab stack menu is opening
 
bool ShouldAutosize () const
 Should this tab be sized based on its content.
 

Protected 属性

bool bShouldAutosize
 Should this tab be auto-sized based on its content?
 
const FSlateBrush * ContentAreaBrush
 The brush that the SDockTabStack should use to draw the content associated with this tab Documents, Apps, and Tool Panels have different backgrounds
 
FName LayoutIdentifier
 The tab's layout identifier
 
SDockTab::FCanCloseTab OnCanCloseTab
 Delegate to execute to determine if we can close this tab
 
FOnTabClosedCallback OnTabClosed
 Callback to call when this tab is destroyed
 
FOnTabStackMenuOpening OnTabStackMenuOpeningHandler
 Called when the the tab stack's context menu is open; gives the currently focused tab a change to add custom

 
float OverlapWidth
 The width that this tab will overlap with side-by-side tabs.
 
FLinearColor TabColorScale
 Color of this tab
 
TAttribute< FString > TabLabel
 The label on the tab
 
ETabRole TabRole
 Is this an MajorTab? A tool panel tab?
 

详细描述

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 SDockTabStack.

成员函数说明

◆ ActivateInParent()

void SDockableTab::ActivateInParent ( ETabActivationCause  InActivationCause)

Make this tab active in its tabwell

参数
InActivationMethodHow this tab was activated.

◆ GetContent()

TSharedRef< SWidget > SDockableTab::GetContent ( )
返回
the content associated with this tab

◆ IsActive()

bool SDockableTab::IsActive ( ) const
返回
True if this tab is currently focused

◆ IsForeground()

bool SDockableTab::IsForeground ( ) const
返回
True if this tab appears active; False otherwise

◆ RemoveTabFromParent()

void SDockableTab::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.

Use RequestCloseTab to do this safely.

◆ RequestCloseTab()

void SDockableTab::RequestCloseTab ( )

Requests that the tab be closed.

Tabs may prevent closing depending on their state


该类的文档由以下文件生成: