Navigation
API > API/Plugins > API/Plugins/ModelingEditorUI > API/Plugins/ModelingEditorUI/ModelingWidgets
Inheritance Hierarchy
References
| Module | ModelingEditorUI |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/ModelingEditorUI/Public/ModelingWidgets/SComboPanel.h |
| Include | #include "ModelingWidgets/SComboPanel.h" |
Syntax
class SComboPanel : public SCompoundWidget
Remarks
SComboPanel provides a ComboBox-type interface but instead of a drop-down list, a STileView panel ("Flyout") is shown with an icon for each selectable item. Various options for the ComboButton are available, eg a single large icon, icon with adjacent label, etc.
Client provides a TArray
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SComboButton > | ComboButton | ||
| FVector2D | ComboButtonTileSize | ||
| FVector2D | FlyoutSize | ||
| FVector2D | FlyoutTileSize | ||
| TArray< TSharedPtr< FComboPanelItem > > | Items | Pointer to the array of data items that we are observing | |
| TSharedPtr< FSlateBrush > | MissingIcon | Icon to use when Item does not have a valid icon | |
| FOnSelectionChanged | OnSelectionChanged | Delegate to invoke when selection changes. | |
| TSharedPtr< FComboPanelItem > | SelectedItem | ||
| TSharedPtr< STileView< TSharedPtr< FComboPanelItem > > > | TileView | ||
| TSharedPtr< SBox > | TileViewContainer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Construct this widget | |
| TSharedRef< ITableRow > | CreateFlyoutIconTile
(
TSharedPtr< FComboPanelItem > Item, |
STileView functions. | |
| void | FlyoutSelectionChanged
(
TSharedPtr< FComboPanelItem > SelectedItemIn, |
||
| TSharedRef< SWidget > | SComboButton functions. | ||
| void | OnMenuOpenChanged
(
bool bOpen |
||
| void | SetSelectionIndex
(
int InSelectionIndex |
Sets the currently selected index without user interaction. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FComboPanelItem | Item in the Combo Flyout (ie selectable option). |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EComboDisplayType | EComboDisplayType is used to specify the widgets in the ComboButton (ie non-expanded widget) |
Typedefs
| Name | Description |
|---|---|
| FOnActiveItemChanged | Event that fires when selection changes |
| FOnSelectionChanged |