Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/ComboBoxString.h |
Include |
#include "Components/ComboBoxString.h" |
class UComboBoxString : public UWidget
The combobox allows you to display a list of options to the user in a dropdown menu for them to select one.
Name | Description | ||
---|---|---|---|
|
bIsFocusable |
||
|
TSharedPtr< SBo... |
ComboBoxContent |
A shared pointer to a container that holds the combobox content that is selected |
|
ContentPadding |
||
|
TSharedPtr< FSt... |
CurrentOptionPtr |
A shared pointer to the current selected string |
|
DefaultComboBoxContent |
If OnGenerateWidgetEvent is not bound, this will store the default STextBlock generated |
|
|
EnableGamepadNavigationMode |
When false, directional keys will change the selection. |
|
|
Font |
The default font to use in the combobox, only applies if you're not implementing OnGenerateWidgetEvent to factory each new entry. |
|
|
ForegroundColor |
The foreground color to pass through the hierarchy. |
|
|
HasDownArrow |
When false, the down arrow is not generated and it is up to the API consumer to make their own visual hint that this is a drop down. |
|
|
ItemStyle |
The item row style. |
|
|
float |
MaxListHeight |
The max height of the combobox list that opens |
|
TSharedPtr< SCo... |
MyComboBox |
A shared pointer to the underlying slate combobox |
|
OnGenerateWidgetEvent |
Called when the widget is needed for the item. |
|
|
OnOpening |
Called when the combobox is opening |
|
|
OnSelectionChanged |
Called when a new item is selected in the combobox. |
|
|
Options |
The true objects bound to the Slate combobox. |
|
|
WidgetStyle |
The style. |
Name | Description | |
---|---|---|
|
UComboBoxString ( |
Name | Description | ||
---|---|---|---|
|
AddOption ( |
||
|
ClearOptions() |
||
|
ClearSelection() |
||
|
FindOptionIndex ( |
||
|
GetOptionAtIndex ( |
||
|
GetOptionCount() |
Returns the number of options |
|
|
GetSelectedIndex() |
||
|
GetSelectedOption() |
||
|
TSharedRef< ... |
HandleGenerateWidget ( |
Called by slate when it needs to generate a new item for the combobox |
|
HandleOpening() |
Called by slate when the underlying combobox is opening |
|
|
HandleSelectionChanged ( |
Called by slate when the underlying combobox selection changes |
|
|
IsOpen() |
||
|
RefreshOptions() |
Refreshes the list of options. |
|
|
RemoveOption ( |
||
|
SetSelectedIndex ( |
||
|
SetSelectedOption ( |
||
|
UpdateOrGenerateWidget ( |
Refresh ComboBoxContent with the correct widget/data when the selected option changes |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name |
Description |
|
---|---|---|
|
FOnOpeningEvent |
|
|
FOnSelectionChangedEvent |