Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input
Inheritance Hierarchy
- SPanel
- IMenuHost
- SMenuAnchor
- SComboButton
- SEnumComboBox
- SPopupErrorText
- SRigVMGraphPinEditableNameValueWidget
- SRigVMGraphPinNameListValueWidget
- SSearchableComboBox
- SSimpleComboButton
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SComboButton.h |
| Include | #include "Widgets/Input/SComboButton.h" |
Syntax
class SComboButton : public SMenuAnchor
Remarks
A button that, when clicked, brings up a popup.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsFocusable | Can this button be focused? | |
| SHorizontalBox::FSlot * | ButtonContentSlot | Area where the button's content resides | |
| TWeakPtr< SWidget > | ContentWidgetPtr | The content widget, if any, set by the user on creation | |
| const FSlateBrush * | MenuBorderBrush | Brush to use to add a "menu border" around the drop-down content | |
| FMargin | MenuBorderPadding | Padding to use to add a "menu border" around the drop-down content | |
| FOnComboBoxOpened | OnComboBoxOpened | Delegate to execute when the combo list is opened | |
| TWeakPtr< SWidget > | WidgetToFocusPtr |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Construct the widget from a declaration | |
| FText | GetFilteredToolTipText
(
TAttribute< FText > ToolTipText |
Called to query the tool tip text for this widget, but will return an empty text when the menu is already open | |
| FReply | Handle the button being clicked by summoning the ComboButton. | ||
| void | SetButtonContentPadding
(
FMargin InPadding |
See the padding for button content. | |
| void | SetHasDownArrow
(
bool InHasArrowDown |
Add/remove the expanding arrow. | |
| void | SetMenuContentWidgetToFocus
(
TWeakPtr< SWidget > InWidgetToFocusPtr |
||
| void | SetOnGetMenuContent
(
FOnGetContent InOnGetMenuContent |
See the OnGetMenuContent event |
Overridden from SMenuAnchor
| Type | Name | Description | |
|---|---|---|---|
| void | SetMenuContent
(
TSharedRef< SWidget > InMenuContent |
See MenuContent attribute |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |