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

Tool bar builder 更多...

#include <MultiBoxBuilder.h>

+ 类 FToolBarBuilder 继承关系图:

Public 成员函数

void AddComboButton (const FUIAction &InAction, const FOnGetContent &InMenuContentGenerator, const TAttribute< FText > &InLabelOverride=TAttribute< FText >(), const TAttribute< FText > &InToolTipOverride=TAttribute< FText >(), const TAttribute< FSlateIcon > &InIconOverride=TAttribute< FSlateIcon >(), bool bInSimpleComboBox=false, FName InTutorialHighlightName=NAME_None)
 Adds a combo button 更多...
 
void AddSeparator (FName InExtensionHook=NAME_None)
 Adds a toolbar separator
 
void AddToolBarButton (const FUIAction &InAction, FName InExtensionHook=NAME_None, const TAttribute< FText > &InLabelOverride=TAttribute< FText >(), const TAttribute< FText > &InToolTipOverride=TAttribute< FText >(), const TAttribute< FSlateIcon > &InIconOverride=TAttribute< FSlateIcon >(), const EUserInterfaceActionType UserInterfaceActionType=EUserInterfaceActionType::Button, FName InTutorialHighlightName=NAME_None)
 Adds a tool bar button 更多...
 
void AddToolBarButton (const TSharedPtr< const FUICommandInfo > InCommand, FName InExtensionHook=NAME_None, const TAttribute< FText > &InLabelOverride=TAttribute< FText >(), const TAttribute< FText > &InToolTipOverride=TAttribute< FText >(), const TAttribute< FSlateIcon > &InIconOverride=TAttribute< FSlateIcon >(), FName InTutorialHighlightName=NAME_None)
 Adds a tool bar button 更多...
 
void AddToolBarWidget (TSharedRef< SWidget > InWidget, const TAttribute< FText > &InLabel=TAttribute< FText >(), FName InTutorialHighlightName=NAME_None, bool bSearchable=true)
 Adds any widget to the toolbar 更多...
 
void AddWidget (TSharedRef< SWidget > InWidget, FName InTutorialHighlightName=NAME_None, bool bSearchable=true)
 Adds any widget to the toolbar 更多...
 
void BeginBlockGroup ()
 Starts a new Group block, must be used in conjunction with EndBlockGroup
 
void BeginSection (FName InExtensionHook)
 Starts a section on to the extender section hook stack 更多...
 
void EndBlockGroup ()
 End a group block, must be used in conjunction with BeginBlockGroup.
 
void EndSection ()
 Ends the current section
 
 FToolBarBuilder (TSharedPtr< const FUICommandList > InCommandList, FMultiBoxCustomization InCustomization, TSharedPtr< FExtender > InExtender=nullptr, const bool InForceSmallIcons=false)
 Constructor 更多...
 
- Public 成员函数 继承自 FMultiBoxBuilder
void AddEditableText (const FText &InLabel, const FText &InToolTip, const FSlateIcon &InIcon, const TAttribute< FText > &InTextAttribute, const FOnTextCommitted &InOnTextCommitted=FOnTextCommitted(), const FOnTextChanged &InOnTextChanged=FOnTextChanged(), bool bInReadOnly=false)
 Adds an editable text entry 更多...
 
bool ExtendersEnabled () const
 
 FMultiBoxBuilder (const EMultiBoxType InType, FMultiBoxCustomization InCustomization, const bool bInShouldCloseWindowAfterMenuSelection, const TSharedPtr< const FUICommandList > &InCommandList, TSharedPtr< FExtender > InExtender=TSharedPtr< FExtender >(), FName InTutorialHighlightName=NAME_None, FName InMenuName=NAME_None)
 Constructor 更多...
 
FMultiBoxCustomization GetCustomization () const
 
TSharedRef< class FMultiBox > GetMultiBox ()
 Get the multi-box being built. 更多...
 
const FName & GetStyleName () const
 
const ISlateStyle * GetStyleSet () const
 
TSharedPtr< const FUICommandList > GetTopCommandList ()
 
virtual TSharedRef< class SWidget > MakeWidget (FMultiBox::FOnMakeMultiBoxBuilderOverride *InMakeMultiBoxBuilderOverride=nullptr, uint32 MaxHeight=INT_MAX)
 Creates a widget for this MultiBox 更多...
 
void PopCommandList ()
 Pops the current command list.
 
void PopExtender ()
 Pops the current extender.
 
void PushCommandList (const TSharedRef< const FUICommandList > CommandList)
 Pushes a new command list onto the stack. 更多...
 
void PushExtender (TSharedRef< FExtender > InExtender)
 Pushes a new extender onto the stack. 更多...
 
void SetExtendersEnabled (bool bEnabled)
 Sets extender support
 
void SetStyle (const ISlateStyle *InStyleSet, const FName &InStyleName)
 Sets the style to use on the multibox widgets
 

Protected 成员函数

virtual void ApplyHook (FName InExtensionHook, EExtensionHook::Position HookPosition) override
 FMultiBoxBuilder interface
 
virtual void ApplySectionBeginning () override
 Applies the beginning of a section, including the header and relevant separator
 
virtual void ApplyHook (FName InExtensionHook, EExtensionHook::Position HookPosition)=0
 Applies any potential extension hooks at the current place
 
virtual void ApplySectionBeginning ()
 Applies the beginning of a section, including the header and relevant separator
 

额外继承的成员函数

- Protected 属性 继承自 FMultiBoxBuilder
bool bExtendersEnabled
 If extenders are enabled
 
TArray< TSharedPtr< const FUICommandList > > CommandListStack
 A stack of command lists which map command infos to delegates that should be called. 更多...
 
TArray< TSharedPtr< class FExtender > > ExtenderStack
 The extender stack holding all the possible extensions for this menu builder
 
FName MenuName
 Name of the menu
 
TSharedRef< class FMultiBox > MultiBox
 The MultiBox we're building up
 
FName TutorialHighlightName
 Name to identify this widget and highlight during tutorials
 

详细描述

Tool bar builder

构造及析构函数说明

◆ FToolBarBuilder()

FToolBarBuilder::FToolBarBuilder ( TSharedPtr< const FUICommandList >  InCommandList,
FMultiBoxCustomization  InCustomization,
TSharedPtr< FExtender >  InExtender = nullptr,
const bool  InForceSmallIcons = false 
)
inline

Constructor

参数
InCommandListThe action list that maps command infos to delegates that should be called for each command associated with a multiblock widget

成员函数说明

◆ AddComboButton()

void FToolBarBuilder::AddComboButton ( const FUIAction &  InAction,
const FOnGetContent &  InMenuContentGenerator,
const TAttribute< FText > &  InLabelOverride = TAttribute< FText >(),
const TAttribute< FText > &  InToolTipOverride = TAttribute< FText >(),
const TAttribute< FSlateIcon > &  InIconOverride = TAttribute< FSlateIcon >(),
bool  bInSimpleComboBox = false,
FName  InTutorialHighlightName = NAME_None 
)

Adds a combo button

参数
InActionUI action that sets the enabled state for this combo button
InMenuContentGeneratorDelegate that generates a widget for this combo button's menu content. Called when the menu is summoned.
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.
bInSimpleComboBoxIf true, the icon and label won't be displayed
InTutorialHighlightNameName to identify this widget and highlight during tutorials

◆ AddToolBarButton() [1/2]

void FToolBarBuilder::AddToolBarButton ( const FUIAction &  InAction,
FName  InExtensionHook = NAME_None,
const TAttribute< FText > &  InLabelOverride = TAttribute< FText >(),
const TAttribute< FText > &  InToolTipOverride = TAttribute< FText >(),
const TAttribute< FSlateIcon > &  InIconOverride = TAttribute< FSlateIcon >(),
const EUserInterfaceActionType  UserInterfaceActionType = EUserInterfaceActionType::Button,
FName  InTutorialHighlightName = NAME_None 
)

Adds a tool bar button

参数
UIActionActions to execute on this menu item.
InLabelLabel to show in the menu entry
InToolTipTool tip used when hovering over the menu entry
InIconThe icon to use
UserInterfaceActionTypeType of interface action
InTutorialHighlightNameName to identify this widget and highlight during tutorials

◆ AddToolBarButton() [2/2]

void FToolBarBuilder::AddToolBarButton ( const TSharedPtr< const FUICommandInfo >  InCommand,
FName  InExtensionHook = NAME_None,
const TAttribute< FText > &  InLabelOverride = TAttribute< FText >(),
const TAttribute< FText > &  InToolTipOverride = TAttribute< FText >(),
const TAttribute< FSlateIcon > &  InIconOverride = TAttribute< FSlateIcon >(),
FName  InTutorialHighlightName = NAME_None 
)

Adds a tool bar button

参数
InCommandThe command associated with this tool bar 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 name of the slate brush to use for the tool bar image. If omitted, then the action's icon will be used instead.
InTutorialHighlightNameName to identify this widget and highlight during tutorials

◆ AddToolBarWidget()

void FToolBarBuilder::AddToolBarWidget ( TSharedRef< SWidget >  InWidget,
const TAttribute< FText > &  InLabel = TAttribute< FText >(),
FName  InTutorialHighlightName = NAME_None,
bool  bSearchable = true 
)

Adds any widget to the toolbar

参数
InWidgetThe widget that should be shown in the toolbar
InLabelOptional Label.
InTutorialHighlightNameName to identify this widget and highlight during tutorials
bSearchableIf true, widget will be searchable (default == true)

◆ AddWidget()

void FToolBarBuilder::AddWidget ( TSharedRef< SWidget >  InWidget,
FName  InTutorialHighlightName = NAME_None,
bool  bSearchable = true 
)

Adds any widget to the toolbar

参数
InWidgetThe widget that should be shown in the toolbar
InTutorialHighlightNameName to identify this widget and highlight during tutorials
bSearchableIf true, widget will be searchable (default == true)

◆ BeginSection()

void FToolBarBuilder::BeginSection ( FName  InExtensionHook)

Starts a section on to the extender section hook stack

参数
InExtensionHookThe section hook. Can be NAME_None

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