MultiBox builder
更多...
#include <MultiBoxBuilder.h>
|
| 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
|
| |
|
|
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
|
| |
|
|
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
|
| |
◆ 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
- 参数
-
| InType | Type of MultiBox |
| bInShouldCloseWindowAfterMenuSelection | Sets whether or not the window that contains this multibox should be destroyed after the user clicks on a menu item in this box |
| InCommandList | The 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. |
| InTutorialHighlightName | Optional 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
- 参数
-
| InLabel | The label to display in the menu |
| InToolTip | The tool tip to display when the menu entry is hovered over |
| InIcon | The icon to display to the left of the label |
| InTextAttribute | The text string we're editing (often, a delegate will be bound to the attribute) |
| InOnTextCommitted | Called when the user commits their change to the editable text control |
| InOnTextChanged | Called when the text is changed interactively |
| bInReadOnly | Whether 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()
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 |
( |
| ) |
|
◆ 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.
- 参数
-
| CommandList | The 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.
- 参数
-
| InExtender | The new extender to use |
◆ CommandListStack
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.
该类的文档由以下文件生成: