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

MultiBox. 更多...

#include <MultiBox.h>

+ 类 FMultiBox 继承关系图:

Public 成员函数

void AddMultiBlock (TSharedRef< const FMultiBlock > InBlock)
 Adds a MultiBlock to this MultiBox, to the end of the list
 
void AddMultiBlockToFront (TSharedRef< const FMultiBlock > InBlock)
 Adds a MultiBlock to this MultiBox, to the front of the list
 
TSharedPtr< const FMultiBlock > FindBlockFromNameAndType (const FName InName, const EMultiBlockType InType) const
 Finds an existing block by name and type 更多...
 
const TArray< TSharedRef< const FMultiBlock > > & GetBlocks () const
 Access this MultiBox's list of blocks 更多...
 
FName GetCustomizationName () const
 
int32 GetSectionEditBounds (const int32 Index, int32 &OutSectionEndIndex) const
 Only callable during edit mode 更多...
 
const FName & GetStyleName () const
 
const ISlateStyle * GetStyleSet () const
 
UToolMenuBase * GetToolMenu () const
 
const EMultiBoxType GetType () const
 Gets the type of this MultiBox 更多...
 
void InsertCustomMultiBlock (TSharedRef< const FMultiBlock > InBlock, int32 Index)
 Inserts a MultiBlock to the list for user customization
 
bool IsInEditMode () const
 
TSharedPtr< FMultiBlock > MakeMultiBlockFromCommand (TSharedPtr< const FUICommandInfo > Command, bool bCommandMustBeBound) const
 Creates a block from the provided command that is compatible with this box 更多...
 
TSharedRef< class SMultiBoxWidget > MakeWidget (bool bSearchable, FOnMakeMultiBoxBuilderOverride *InMakeMultiBoxBuilderOverride=nullptr, TAttribute< float > InMaxHeight=TAttribute< float >())
 Creates a MultiBox widget for this MultiBox 更多...
 
FEditSelectionChangedDelegate & OnEditSelectionChanged ()
 Delegate to call while editing when selected block has changed
 
const FEditSelectionChangedDelegate & OnEditSelectionChanged () const
 Delegate to call while editing when selected block has changed
 
void RemoveCustomMultiBlock (TSharedRef< const FMultiBlock > InBlock)
 Removes a MultiBlock from the list for user customization
 
void SetStyle (const ISlateStyle *InStyleSet, const FName &InStyleName)
 Sets the style to use on the multibox widgets
 
bool ShouldCloseWindowAfterMenuSelection () const
 Gets whether or not the window that contains this multibox should be destroyed after the user clicks on a menu item in this box 更多...
 
- Public 成员函数 继承自 TSharedFromThis< FMultiBox >
TSharedRef< FMultiBox, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FMultiBox const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

静态 Public 成员函数

static TSharedRef< FMultiBox > Create (const EMultiBoxType InType, FMultiBoxCustomization InCustomization, const bool bInShouldCloseWindowAfterMenuSelection)
 Creates a new multibox instance
 

Public 属性

FOnModifyBlockWidgetAfterMake ModifyBlockWidgetAfterMake
 Allow further modifications to the block's widget after it has been made
 
TWeakObjectPtr< UToolMenuBase > WeakToolMenu
 Weak reference to tool menu that created this multibox
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< FMultiBox >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< FMultiBox >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

MultiBox.

Contains a list of MultiBlocks that provide various functionality.

成员函数说明

◆ FindBlockFromNameAndType()

TSharedPtr< const FMultiBlock > FMultiBox::FindBlockFromNameAndType ( const FName  InName,
const EMultiBlockType  InType 
) const

Finds an existing block by name and type

参数
InNameThe name to search for
InTypeThe type to match during the search

◆ GetBlocks()

const TArray< TSharedRef< const FMultiBlock > > & FMultiBox::GetBlocks ( ) const
inline

Access this MultiBox's list of blocks

返回
Our list of MultiBlocks

◆ GetCustomizationName()

FName FMultiBox::GetCustomizationName ( ) const
返回
The customization name for this box

◆ GetSectionEditBounds()

int32 FMultiBox::GetSectionEditBounds ( const int32  Index,
int32 &  OutSectionEndIndex 
) const

Only callable during edit mode

返回
Index of section heading or separator

◆ GetStyleName()

const FName & FMultiBox::GetStyleName ( ) const
inline
返回
The style name used by the multibox widgets

◆ GetStyleSet()

const ISlateStyle * FMultiBox::GetStyleSet ( ) const
inline
返回
The style set used by the multibox widgets

◆ GetToolMenu()

UToolMenuBase * FMultiBox::GetToolMenu ( ) const
返回
The tool menu associated with this multi box

◆ GetType()

const EMultiBoxType FMultiBox::GetType ( ) const
inline

Gets the type of this MultiBox

返回
The MultiBox's type

◆ IsInEditMode()

bool FMultiBox::IsInEditMode ( ) const
返回
Is being editing

◆ MakeMultiBlockFromCommand()

TSharedPtr< FMultiBlock > FMultiBox::MakeMultiBlockFromCommand ( TSharedPtr< const FUICommandInfo >  Command,
bool  bCommandMustBeBound 
) const

Creates a block from the provided command that is compatible with this box

参数
CommandThe UI command to create the block from
返回
The created multi block. If null, this command could not be placed in this block

◆ MakeWidget()

TSharedRef< class SMultiBoxWidget > FMultiBox::MakeWidget ( bool  bSearchable,
FOnMakeMultiBoxBuilderOverride *  InMakeMultiBoxBuilderOverride = nullptr,
TAttribute< float >  InMaxHeight = TAttribute< float >() 
)

Creates a MultiBox widget for this MultiBox

返回
MultiBox widget object

◆ ShouldCloseWindowAfterMenuSelection()

bool FMultiBox::ShouldCloseWindowAfterMenuSelection ( ) const
inline

Gets whether or not the window that contains this multibox should be destroyed after the user clicks on a menu item in this box

返回
True if window should be closed automatically when the user clicks on a menu item, otherwise false

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