SMultiBoxWidget

MultiBox Slate widget

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBox.h

Include

#include "Framework/MultiBox/MultiBox.h"

Syntax

class SMultiBoxWidget : public SMenuOwner

Remarks

MultiBox Slate widget

Functions

Name Description

Public function

void

 

AddSearchElement

(
    TSharedPtr< SWidget >,
    FText
)

Adds a widget to SearchElement map, making the widget searchable

Public function

void

 

BuildMultiBoxWidget()

Builds this MultiBox widget up from the MultiBox associated with it

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Construct this widget

Public function

void

 

FilterMultiBoxEntries()

Changes visibility of widgets in the multibox

Public function Static

FReply

 

FocusNextWidget

(
    EUINavigation NavigationType
)

Helper function used to transfer focus to the next/previous widget

Public function

TSharedRef< ...

 

GenerateTiles

(
    TSharedPtr< SWidget > Item,
    const TSharedRef< STableViewBase > ...
)

Generates the tiles for an STileView for button rows

Public function Const

EVisibility

 

GetCustomizationBorderDragVisibility

(
    const FName InBlockName,
    const EMultiBlockType InBlockType,
    bool& bOutInsertAfter
)

Public function Const

EVisibility

 

GetCustomizationVisibility

(
    TWeakPtr< const FMultiBlock > Block...,
    TWeakPtr< SWidget > BlockWidgetWeak...
)

Public function Const

float

 

GetItemHeight()

Public function Const

float

 

GetItemWidth()

Gets the maximum item width and height of the consituent widgets

Public function Const

TSharedRef< ...

 

GetMultiBox()

Access the MultiBox associated with this widget

Public function Const

bool

 

GetSearchable()

Gets the searchable state of this multibox

Public function Const

FText

 

GetSearchText()

Get the text to search by

Public function

TSharedPtr< ...

 

GetSearchTextWidget()

Get the SSearchText widget holding the search text

Public function Const

const FName ...

 

GetStyleName()

Public function Const

const ISlate...

 

GetStyleSet()

Public function Const

bool

 

IsBlockBeingDragged

(
    TSharedPtr< const FMultiBlock > Blo...
)

Public function

void

 

OnCustomCommandDragEnter

(
    TSharedRef< const FMultiBlock > Mul...,
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

Called when a user drags a UI command into a multiblock in this widget

Public function

void

 

OnCustomCommandDragged

(
    TSharedRef< const FMultiBlock > Mul...,
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

Called when a user drags a UI command within multiblock in this widget

Public function

void

 

OnCustomCommandDropped()

Called when a user drops a UI command in this widget

Public function

void

 

OnDropExternal()

Called after a drag was initiated from this box but was dropped elsewhere

Public function

TSharedRef< ...

 

OnWrapButtonClicked()

Event handler for clicking the wrap button

Public function

void

 

ReduceSearch()

Public function

void

 

ResetSearch()

Resets the search to be empty

Public function

void

 

SetContent

(
    TSharedRef< SWidget > InContent
)

Sets new content for the SMultiBoxWidget

Public function

void

 

SetMaxHeight

(
    TAttribute< float > InMaxHeight
)

Sets optional maximum height of widget

Public function

void

 

SetMultiBox

(
    TSharedRef< FMultiBox > InMultiBox
)

Associates this widget with a MultiBox

Public function

void

 

SetSearchable

(
    bool bSearchable
)

Sets the searchable state of this multibox

Public function

void

 

SetSearchBlockWidget

(
    TSharedPtr< SWidget >
)

Set the block widget holding the search text

Public function

void

 

TypeChar

(
    const TCHAR InChar
)

Public function

void

 

UpdateSearch

(
    const TCHAR
)

Changes visibility of widgets in the multibox

Overridden from SWidget

Name Description

Public function Virtual

FReply

 

OnDragOver

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

SWidget interface

Public function Virtual

FReply

 

OnDrop

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

Called when the user is dropping something onto a widget; terminates drag and drop.

Public function Virtual

FReply

 

OnFocusReceived

(
    const FGeometry& MyGeometry,
    const FFocusEvent& InFocusEvent
)

KEY INPUT Called when focus is given to this widget. This event does not bubble.

Public function Virtual

FReply

 

OnKeyChar

(
    const FGeometry& MyGeometry,
    const FCharacterEvent& InCharacter...
)

Called after a character is entered while this widget has keyboard focus

Public function Virtual

FReply

 

OnKeyDown

(
    const FGeometry& MyGeometry,
    const FKeyEvent& InKeyEvent
)

Called after a key is pressed when this widget has focus (this event bubbles if not handled)

Public function Virtual

bool

 

OnVisualizeTooltip

(
    const TSharedPtr< SWidget >& Toolt...
)

Called when Slate wants to visualize tooltip.

Public function Virtual Const

bool

 

SupportsKeyboardFocus()

Checks to see if this widget supports keyboard focus. Override this in derived classes.

Classes

Name

Description

Public struct

FArguments

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss