UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWidgetBlock Class Reference

#include <SWidgetBlock.h>

+ Inheritance diagram for FWidgetBlock:

Public Member Functions

 FWidgetBlock (TSharedRef< SWidget > InContent, const FText &InLabel, const TAttribute< FText > &InToolTipText=FText(), const FMenuEntryStyleParams &InStyleParams=FMenuEntryStyleParams(), const TAttribute< FSlateIcon > &InIcon=TAttribute< FSlateIcon >())
 
virtual void CreateMenuEntry (class FMenuBuilder &MenuBuilder) const override
 
void SetCustomMenuDelegate (FNewMenuDelegate &InOnFillMenuDelegate)
 
- Public Member Functions inherited from FMultiBlock
 FMultiBlock (const TSharedPtr< const FUICommandInfo > InCommand, TSharedPtr< const FUICommandList > InCommandList, FName InExtensionHook=NAME_None, EMultiBlockType InType=EMultiBlockType::None, bool bInIsPartOfHeading=false)
 
 FMultiBlock (const FUIAction &InAction, FName InExtensionHook=NAME_None, EMultiBlockType InType=EMultiBlockType::None, bool bInIsPartOfHeading=false, TSharedPtr< const FUICommandList > InCommandList=nullptr)
 
 FMultiBlock (const FMultiBlockParams &InMultiBlockParams)
 
virtual ~FMultiBlock ()
 
TSharedPtr< const FUICommandListGetActionList () const
 
TSharedPtr< const FUICommandInfoGetAction () const
 
const FUIActionGetDirectActions () const
 
virtual bool IsGroupStartBlock () const
 
virtual bool IsGroupEndBlock () const
 
virtual bool HasIcon () const
 
void SetTutorialHighlightName (FName InTutorialName)
 
FName GetTutorialHighlightName () const
 
void SetStyleNameOverride (FName InStyleNameOverride)
 
FName GetStyleNameOverride () const
 
SLATE_API TSharedRef< class IMultiBlockBaseWidgetMakeWidget (TSharedRef< class SMultiBoxWidget > InOwnerMultiBoxWidget, EMultiBlockLocation::Type InLocation, bool bSectionContainsIcons, TSharedPtr< SWidget > OptionsBlockWidget) const
 
const EMultiBlockType GetType () const
 
bool IsSeparator () const
 
bool IsPartOfHeading () const
 
SLATE_API void SetSearchable (bool bSearchable)
 
SLATE_API bool GetSearchable () const
 
FName GetExtensionHook () const
 
TAttribute< EVisibilityGetVisibilityOverride () const
 
void SetVisibilityOverride (TAttribute< EVisibility > InVisibilityOverride)
 
const TAttribute< FMenuEntryResizeParams > & GetResizeParams () const
 
void SetResizeParams (const TAttribute< FMenuEntryResizeParams > &InResizeParams)
 
- Public Member Functions inherited from TSharedFromThis< FMultiBlock >
TSharedRef< FMultiBlock, Mode > AsShared ()
 
TSharedRef< FMultiBlock const, Mode > AsShared () const
 
TSharedRef< SubobjectType, Mode > AsSharedSubobject (SubobjectType *SubobjectPtr) const
 
TWeakPtr< FMultiBlock, Mode > AsWeak ()
 
TWeakPtr< FMultiBlock const, Mode > AsWeak () const
 
TWeakPtr< SubobjectType, Mode > AsWeakSubobject (SubobjectType *SubobjectPtr) const
 
void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const
 
void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const
 
UE_FORCEINLINE_HINT bool DoesSharedInstanceExist () const
 

Friends

class SWidgetBlock
 

Additional Inherited Members

- Protected Member Functions inherited from TSharedFromThis< FMultiBlock >
 TSharedFromThis ()
 
 TSharedFromThis (TSharedFromThis const &)
 
UE_FORCEINLINE_HINT TSharedFromThisoperator= (TSharedFromThis const &)
 
 ~TSharedFromThis ()
 
- Static Protected Member Functions inherited from TSharedFromThis< FMultiBlock >
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 
static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 

Detailed Description

Arbitrary Widget MultiBlock

Constructor & Destructor Documentation

◆ FWidgetBlock()

FWidgetBlock::FWidgetBlock ( TSharedRef< SWidget InContent,
const FText InLabel,
const TAttribute< FText > &  InToolTipText = FText(),
const FMenuEntryStyleParams InStyleParams = FMenuEntryStyleParams(),
const TAttribute< FSlateIcon > &  InIcon = TAttribute<FSlateIcon>() 
)

Constructor

Parameters
InContentThe widget to place in the block
InLabelOptional label text to be added to the left of the content
InToolTipTextOptional tooltip text to be added to the widget and label
InStyleParamsOptional additional style parameters.
See also
FMenuEntryStyleParams
Parameters
InIconOptional icon to be shown to the left of the label/content

Member Function Documentation

◆ CreateMenuEntry()

void FWidgetBlock::CreateMenuEntry ( class FMenuBuilder MenuBuilder) const
overridevirtual

FMultiBlock interface

Reimplemented from FMultiBlock.

◆ SetCustomMenuDelegate()

void FWidgetBlock::SetCustomMenuDelegate ( FNewMenuDelegate InOnFillMenuDelegate)

Set optional delegate to customize when a menu appears instead of the widget, such as in toolbars

Friends And Related Symbol Documentation

◆ SWidgetBlock

friend class SWidgetBlock
friend

The documentation for this class was generated from the following files: