Navigation
API > API/Runtime > API/Runtime/Slate
Simple box containing a combobox of strings to pick from, usually used within a MenuStack
| Name | STextComboPopup |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/STextComboPopup.h |
| Include Path | #include "Widgets/Input/STextComboPopup.h" |
Syntax
class STextComboPopup : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → STextComboPopup
- FSlateControlledConstruction → SWidget → SCompoundWidget → STextComboPopup
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OkButton | TSharedPtr< SButton > | The OK button | Widgets/Input/STextComboPopup.h | |
| OnTextChosen | FOnTextChosen | Delegate to call when OK button is pressed | Widgets/Input/STextComboPopup.h | |
| StringCombo | TSharedPtr< SComboBox< TSharedPtr< FString > > > | The combo box | Widgets/Input/STextComboPopup.h | |
| Strings | TArray< TSharedPtr< FString > > | Array of shared pointers to strings so combo widget can work on them | Widgets/Input/STextComboPopup.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SelectedItem | TSharedPtr< FString > | The text item selected | Widgets/Input/STextComboPopup.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/Input/STextComboPopup.h | ||
void FocusDefaultWidget() |
Focuses the control on the OK button | Widgets/Input/STextComboPopup.h | |
TSharedRef< SWidget > MakeItemWidget
(
TSharedPtr< FString > StringItem |
Called to create a widget for each string | Widgets/Input/STextComboPopup.h | |
FReply OnOK() |
Called when 'OK' button is pressed | Widgets/Input/STextComboPopup.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| SWidget interface | Widgets/Input/STextComboPopup.h |