Navigation
API > API/Runtime > API/Runtime/Slate
Implements an editable combo box.
| Name | SEditableComboBox |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SEditableComboBox.h |
| Include Path | #include "Widgets/Input/SEditableComboBox.h" |
Syntax
template<typename OptionType>
class SEditableComboBox : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SEditableComboBox
- FSlateControlledConstruction → SWidget → SCompoundWidget → SEditableComboBox
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnGenerateWidget | TSlateDelegates< OptionType >::FOnGenerateWidget | Widgets/Input/SEditableComboBox.h | |
| FOnSelectionChanged | TSlateDelegates< OptionType >::FOnSelectionChanged | Widgets/Input/SEditableComboBox.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ComboBox | TSharedPtr< SComboBox< OptionType > > | Holds the combo box. | Widgets/Input/SEditableComboBox.h | |
| EditedItem | OptionType | Holds the currently edited item. | Widgets/Input/SEditableComboBox.h | |
| OnGetEditableText | FOnGetEditableComboBoxText | Holds a delegate to be invoked before the editable text box is populated and shown. | Widgets/Input/SEditableComboBox.h | |
| OnSelectionRenamed | FOnTextCommitted | Holds a delegate to be invoked after the text changes have been committed. | Widgets/Input/SEditableComboBox.h | |
| TextBox | TSharedPtr< SEditableTextBox > | Holds the text box. | Widgets/Input/SEditableComboBox.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearSelection() |
Clears the combo box selection. | Widgets/Input/SEditableComboBox.h | |
void Construct
(
const FArguments& InArgs |
Constructs the widget. | Widgets/Input/SEditableComboBox.h | |
OptionType GetSelectedItem() |
Gets the item that is currently selected in the combo box. | Widgets/Input/SEditableComboBox.h | |
void RefreshOptions () |
Requests a list refresh after updating options. | Widgets/Input/SEditableComboBox.h | |
void SetSelectedItem
(
OptionType InSelectedItem |
Sets the item that is selected in the combo box. | Widgets/Input/SEditableComboBox.h |