Navigation
API > API/Runtime > API/Runtime/Slate
A button that, when clicked, brings up a popup.
| Name | SComboButton |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SComboButton.h |
| Include Path | #include "Widgets/Input/SComboButton.h" |
Syntax
class SComboButton : public SMenuAnchor
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SMenuAnchor → SComboButton
- FSlateControlledConstruction → SWidget → SPanel → SMenuAnchor → SComboButton
Implements Interfaces
Derived Classes
SComboButton derived class hierarchy
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ButtonPtr | TSharedPtr< SButton > | The button widget within the ComboButton | Widgets/Input/SComboButton.h | |
| ForegroundArrowImage | TSharedPtr< SImage > | The arrow image | Widgets/Input/SComboButton.h | |
| HBox | TSharedPtr< SHorizontalBox > | The box containing the arrow | Widgets/Input/SComboButton.h | |
| ShadowImage | TSharedPtr< SImage > | The arrow image shadow | Widgets/Input/SComboButton.h | |
| Style | const FComboButtonStyle * | The ComboButton style | Widgets/Input/SComboButton.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct the widget from a declaration | Widgets/Input/SComboButton.h | |
void SetButtonContentPadding
(
FMargin InPadding |
See the padding for button content. | Widgets/Input/SComboButton.h | |
void SetHasDownArrow
(
bool InHasArrowDown |
Add/remove the expanding arrow. | Widgets/Input/SComboButton.h | |
| Widgets/Input/SComboButton.h | |||
void SetOnGetMenuContent
(
FOnGetContent InOnGetMenuContent |
See the OnGetMenuContent event | Widgets/Input/SComboButton.h |
Overridden from SMenuAnchor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetMenuContent
(
TSharedRef< SWidget > InMenuContent |
See MenuContent attribute | Widgets/Input/SComboButton.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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 | Widgets/Input/SComboButton.h | |
virtual FReply OnButtonClicked() |
Handle the button being clicked by summoning the ComboButton. | Widgets/Input/SComboButton.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Widgets/Input/SComboButton.h |