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

MultiBox builder 更多...

#include <MultiBoxBuilder.h>

+ 类 FMultiBoxBuilder 继承关系图:

Public 成员函数

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)=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 属性

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
 

详细描述

MultiBox builder

构造及析构函数说明

◆ FMultiBoxBuilder()

FMultiBoxBuilder::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

参数
InTypeType of MultiBox
bInShouldCloseWindowAfterMenuSelectionSets whether or not the window that contains this multibox should be destroyed after the user clicks on a menu item in this box
InCommandListThe action list that maps command infos to delegates that should be called for each command associated with a multiblock widget. This can be modified after the MultiBox is created by calling the PushCommandList() and PopCommandList() methods.
InTutorialHighlightNameOptional name to identify this widget and highlight during tutorials

成员函数说明

◆ AddEditableText()

void FMultiBoxBuilder::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

参数
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
InTextAttributeThe text string we're editing (often, a delegate will be bound to the attribute)
InOnTextCommittedCalled when the user commits their change to the editable text control
InOnTextChangedCalled when the text is changed interactively
bInReadOnlyWhether or not the text block is read only

◆ ExtendersEnabled()

bool FMultiBoxBuilder::ExtendersEnabled ( ) const
inline
返回
True if extenders are enabled

◆ GetCustomization()

FMultiBoxCustomization FMultiBoxBuilder::GetCustomization ( ) const
返回
The customization settings for the box being built

◆ GetMultiBox()

TSharedRef< class FMultiBox > FMultiBoxBuilder::GetMultiBox ( )

Get the multi-box being built.

返回
The multi-box being built.

◆ GetStyleName()

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

◆ GetStyleSet()

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

◆ GetTopCommandList()

TSharedPtr< const FUICommandList > FMultiBoxBuilder::GetTopCommandList ( )
返回
The top command list

◆ MakeWidget()

virtual TSharedRef< class SWidget > FMultiBoxBuilder::MakeWidget ( FMultiBox::FOnMakeMultiBoxBuilderOverride *  InMakeMultiBoxBuilderOverride = nullptr,
uint32  MaxHeight = INT_MAX 
)
virtual

Creates a widget for this MultiBox

返回
New widget object

被 FMenuBuilder 重载.

◆ PushCommandList()

void FMultiBoxBuilder::PushCommandList ( const TSharedRef< const FUICommandList >  CommandList)

Pushes a new command list onto the stack.

This command list will be used for all subsequently-added multiblocks, until the command-list is popped.

参数
CommandListThe new command list to use

◆ PushExtender()

void FMultiBoxBuilder::PushExtender ( TSharedRef< FExtender >  InExtender)

Pushes a new extender onto the stack.

This extender will be used for all subsequently-added multiblocks, until the extender is popped.

参数
InExtenderThe new extender to use

类成员变量说明

◆ CommandListStack

TArray< TSharedPtr< const FUICommandList > > FMultiBoxBuilder::CommandListStack
protected

A stack of command lists which map command infos to delegates that should be called.

New multi blocks will always use the command-list at the top of the stack at the time they are added.


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