STextComboBox

A combo box that shows text content.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Input/STextComboBox.h

Include

#include "Widgets/Input/STextComboBox.h"

Syntax

class STextComboBox : public SCompoundWidget

Remarks

A combo box that shows text content.

Functions

Name Description

Public function

void

 

ClearSelection()

Clears the selected item in the text combo

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function

TSharedPtr< ...

 

GetSelectedItem()

Returns the currently selected text string

Public function

TSharedRef< ...

 

MakeItemWidget

(
    TSharedPtr< FString > StringItem
)

Called to create a widget for each string

Public function

void

 

RefreshOptions()

Request to reload the text options in the combobox from the OptionsSource attribute

Public function

void

 

SetSelectedItem

(
    TSharedPtr< FString > NewSelection
)

Classes

Name

Description

Public struct

FArguments

Typedefs