Navigation
API > API/Editor > API/Editor/GraphEditor
A combo box that shows FName content.
| Name | SNameComboBox |
| Type | class |
| Header File | /Engine/Source/Editor/GraphEditor/Public/SNameComboBox.h |
| Include Path | #include "SNameComboBox.h" |
Syntax
class SNameComboBox : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SNameComboBox
- FSlateControlledConstruction → SWidget → SCompoundWidget → SNameComboBox
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FGetNameComboLabel | TBaseDelegate_OneParam< FString, TSharedPtr< FName > > | SNameComboBox.h | |
| FOnNameSelectionChanged | TSlateDelegates< TSharedPtr< FName > >::FOnSelectionChanged | SNameComboBox.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Font | TAttribute< FSlateFontInfo > | Sets the font used to draw the text | SNameComboBox.h | |
| GetTextLabelForItem | FGetNameComboLabel | Called to get the text label for an item | SNameComboBox.h | |
| NameCombo | TSharedPtr< SComboBox< TSharedPtr< FName > > > | The combo box | SNameComboBox.h | |
| Names | TArray< TSharedPtr< FName > > | Array of shared pointers to FNames so combo widget can work on them | SNameComboBox.h | |
| SelectedItem | TSharedPtr< FName > | The FName item selected | SNameComboBox.h | |
| SelectionChanged | FOnNameSelectionChanged | Forwarding Delegate | SNameComboBox.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearSelection() |
Clears the selected item in the name combo | SNameComboBox.h | |
void Construct
(
const FArguments& InArgs |
SNameComboBox.h | ||
TSharedPtr< FName > GetSelectedItem() |
Returns the currently selected FName | SNameComboBox.h | |
TSharedRef< SWidget > MakeItemWidget
(
TSharedPtr< FName > StringItem |
Called to create a widget for each FName | SNameComboBox.h | |
void RefreshOptions() |
Request to reload the name options in the combobox from the OptionsSource attribute | SNameComboBox.h | |
void SetSelectedItem
(
TSharedPtr< FName > NewSelection |
SNameComboBox.h |