engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FMultiBlock类 参考abstract

MultiBlock (abstract). 更多...

#include <MultiBox.h>

+ 类 FMultiBlock 继承关系图:

Public 成员函数

virtual void CreateMenuEntry (class FMenuBuilder &MenuBuilder) const
 Creates a menu entry that is representative of this block
 
 FMultiBlock (const FUIAction &InAction, FName InExtensionHook=NAME_None, EMultiBlockType InType=EMultiBlockType::None, bool bInIsPartOfHeading=false, TSharedPtr< const FUICommandList > InCommandList=nullptr)
 Constructor 更多...
 
 FMultiBlock (const TSharedPtr< const FUICommandInfo > InCommand, TSharedPtr< const FUICommandList > InCommandList, FName InExtensionHook=NAME_None, EMultiBlockType InType=EMultiBlockType::None, bool bInIsPartOfHeading=false)
 Constructor 更多...
 
TSharedPtr< const FUICommandInfo > GetAction () const
 Returns the action associated with this block 更多...
 
TSharedPtr< const FUICommandList > GetActionList () const
 Returns the action list associated with this block 更多...
 
const FUIAction & GetDirectActions () const
 Returns the direct actions for this block. 更多...
 
FName GetExtensionHook () const
 Gets the extension hook so users can see what hooks are where
 
bool GetSearchable () const
 Gets the searchable state of this block 更多...
 
FName GetTutorialHighlightName () const
 Get the tutorial highlight name for this menu entry
 
const EMultiBlockType GetType () const
 Gets the type of this MultiBox 更多...
 
virtual bool IsGroupStartBlock () const
 Group blocks interface
 
bool IsPartOfHeading () const
 Is this block a heading block or a block that belongs to a heading such as a separator 更多...
 
bool IsSeparator () const
 Is this block a separator 更多...
 
TSharedRef< class IMultiBlockBaseWidget > MakeWidget (TSharedRef< class SMultiBoxWidget > InOwnerMultiBoxWidget, EMultiBlockLocation::Type InLocation, bool bSectionContainsIcons) const
 Creates a MultiBlock widget for this MultiBlock 更多...
 
void SetSearchable (bool bSearchable)
 Sets the searchable state of this block 更多...
 
void SetTutorialHighlightName (FName InTutorialName)
 Set the tutorial highlight name for this menu entry
 
- Public 成员函数 继承自 TSharedFromThis< FMultiBlock >
TSharedRef< FMultiBlock, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FMultiBlock 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. 更多...
 

友元

class SMultiBoxWidget
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< FMultiBlock >
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< FMultiBlock >
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. 更多...
 

详细描述

MultiBlock (abstract).

Wraps a "block" of useful UI functionality that can be added to a MultiBox.

构造及析构函数说明

◆ FMultiBlock() [1/2]

FMultiBlock::FMultiBlock ( const TSharedPtr< const FUICommandInfo >  InCommand,
TSharedPtr< const FUICommandList >  InCommandList,
FName  InExtensionHook = NAME_None,
EMultiBlockType  InType = EMultiBlockType::None,
bool  bInIsPartOfHeading = false 
)
inline

Constructor

参数
InCommandThe command info that describes what action to take when this block is activated
InCommandListThe list of mappings from command info to delegates so we can find the delegates to process for the provided action

◆ FMultiBlock() [2/2]

FMultiBlock::FMultiBlock ( const FUIAction &  InAction,
FName  InExtensionHook = NAME_None,
EMultiBlockType  InType = EMultiBlockType::None,
bool  bInIsPartOfHeading = false,
TSharedPtr< const FUICommandList >  InCommandList = nullptr 
)
inline

Constructor

@InAction UI action delegates that should be used in place of UI commands (dynamic menu items)

成员函数说明

◆ GetAction()

TSharedPtr< const FUICommandInfo > FMultiBlock::GetAction ( ) const
inline

Returns the action associated with this block

返回
The action for this block or null if one does not exist

◆ GetActionList()

TSharedPtr< const FUICommandList > FMultiBlock::GetActionList ( ) const
inline

Returns the action list associated with this block

返回
The action list or null if one does not exist for this block

◆ GetDirectActions()

const FUIAction & FMultiBlock::GetDirectActions ( ) const
inline

Returns the direct actions for this block.

Delegates may be unbound if this block has a UICommand

返回
DirectActions for this block

◆ GetSearchable()

bool FMultiBlock::GetSearchable ( ) const

Gets the searchable state of this block

返回
Whether this block is searchable

◆ GetType()

const EMultiBlockType FMultiBlock::GetType ( ) const
inline

Gets the type of this MultiBox

返回
The MultiBlock's type

◆ IsPartOfHeading()

bool FMultiBlock::IsPartOfHeading ( ) const
inline

Is this block a heading block or a block that belongs to a heading such as a separator

返回
True if block is part of a section heading's blocks

◆ IsSeparator()

bool FMultiBlock::IsSeparator ( ) const
inline

Is this block a separator

返回
True if block is a separator

◆ MakeWidget()

TSharedRef< class IMultiBlockBaseWidget > FMultiBlock::MakeWidget ( TSharedRef< class SMultiBoxWidget >  InOwnerMultiBoxWidget,
EMultiBlockLocation::Type  InLocation,
bool  bSectionContainsIcons 
) const

Creates a MultiBlock widget for this MultiBlock

参数
InOwnerMultiBoxWidgetThe widget that will own the new MultiBlock widget
InLocationThe location information for the MultiBlock widget
返回
MultiBlock widget object

◆ SetSearchable()

void FMultiBlock::SetSearchable ( bool  bSearchable)

Sets the searchable state of this block

参数
bSearchableThe searchable state to set

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