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

Tool bar button MultiBlock 更多...

#include <SToolBarButtonBlock.h>

+ 类 FToolBarButtonBlock 继承关系图:

Public 成员函数

virtual void CreateMenuEntry (class FMenuBuilder &MenuBuilder) const override
 FMultiBlock interface
 
 FToolBarButtonBlock (const TAttribute< FText > &InLabel, const TAttribute< FText > &InToolTip, const TAttribute< FSlateIcon > &InIcon, const FUIAction &InUIAction, const EUserInterfaceActionType InUserInterfaceActionType)
 Constructor 更多...
 
 FToolBarButtonBlock (const TSharedPtr< const FUICommandInfo > InCommand, TSharedPtr< const FUICommandList > InCommandList, const TAttribute< FText > &InLabelOverride=TAttribute< FText >(), const TAttribute< FText > &InToolTipOverride=TAttribute< FText >(), const TAttribute< FSlateIcon > &InIconOverride=TAttribute< FSlateIcon >())
 Constructor 更多...
 
void SetForceSmallIcons (const bool InForceSmallIcons)
 Set whether this toolbar should always use small icons, regardless of the current settings
 
- Public 成员函数 继承自 FMultiBlock
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 SToolBarButtonBlock
 

额外继承的成员函数

- 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. 更多...
 

详细描述

Tool bar button MultiBlock

构造及析构函数说明

◆ FToolBarButtonBlock() [1/2]

FToolBarButtonBlock::FToolBarButtonBlock ( const TSharedPtr< const FUICommandInfo >  InCommand,
TSharedPtr< const FUICommandList >  InCommandList,
const TAttribute< FText > &  InLabelOverride = TAttribute< FText >(),
const TAttribute< FText > &  InToolTipOverride = TAttribute< FText >(),
const TAttribute< FSlateIcon > &  InIconOverride = TAttribute< FSlateIcon >() 
)

Constructor

参数
InCommandThe command associated with this tool bar button
InCommandListThe list of commands that are mapped to delegates so that we know what to execute for this button
InLabelOverrideOptional label override. If omitted, then the action's label will be used instead.
InToolTipOverrideOptional tool tip override. If omitted, then the action's label will be used instead.
InIconOverrideOptional icon to use for the tool bar image. If omitted, then the action's icon will be used instead.

◆ FToolBarButtonBlock() [2/2]

FToolBarButtonBlock::FToolBarButtonBlock ( const TAttribute< FText > &  InLabel,
const TAttribute< FText > &  InToolTip,
const TAttribute< FSlateIcon > &  InIcon,
const FUIAction &  InUIAction,
const EUserInterfaceActionType  InUserInterfaceActionType 
)

Constructor

参数
InLabelThe label to display in the menu
InToolTipThe tool tip to display when the menu entry is hovered over
InIconThe icon to display to the left of the label
InUIActionUI action to take when this menu item is clicked as well as to determine if the menu entry can be executed or appears "checked"
InUserInterfaceActionTypeType of interface action

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