![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SComboButton.h>
Inheritance diagram for SComboButton:Public Member Functions | |
| SLATE_BEGIN_ARGS (SComboButton) | |
| virtual SLATE_API void | SetMenuContent (TSharedRef< SWidget > InContent) override |
| SLATE_API void | SetOnGetMenuContent (FOnGetContent InOnGetMenuContent) |
| SLATE_API void | Construct (const FArguments &InArgs) |
| void | SetMenuContentWidgetToFocus (TWeakPtr< SWidget > InWidgetToFocusPtr) |
| SLATE_API void | SetButtonContentPadding (FMargin InPadding) |
| SLATE_API void | SetHasDownArrow (bool InHasArrowDown) |
Protected Member Functions | |
| virtual SLATE_API FReply | OnButtonClicked () |
| virtual SLATE_API FReply | OnKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent) override |
| SLATE_API FText | GetFilteredToolTipText (TAttribute< FText > ToolTipText) const |
Protected Attributes | |
| SHorizontalBox::FSlot * | ButtonContentSlot |
| FOnComboBoxOpened | OnComboBoxOpened |
| TWeakPtr< SWidget > | WidgetToFocusPtr |
| const FSlateBrush * | MenuBorderBrush |
| FMargin | MenuBorderPadding |
| TWeakPtr< SWidget > | ContentWidgetPtr |
| bool | bIsFocusable |
A button that, when clicked, brings up a popup.
| void SComboButton::Construct | ( | const FArguments & | InArgs | ) |
Construct the widget from a declaration
| InArgs | The declaration from which to construct |
|
protected |
Called to query the tool tip text for this widget, but will return an empty text when the menu is already open
| ToolTipText | Tool tip text to display, if possible |
|
protectedvirtual |
Handle the button being clicked by summoning the ComboButton.
|
overrideprotectedvirtual |
Reimplemented in SComboBox< OptionType >, SComboBox< TSharedPtr< ESelectionMode::Type > >, and SComboBox< TSharedPtr< FString > >.
|
overridevirtual |
The visual style of the button (overrides ComboButtonStyle) Optional static menu content. If the menu content needs to be dynamically built, use the OnGetMenuContent event Sets an event handler to generate a widget dynamically when the menu is needed. Spawn a new window or reuse current window for this combo True if this combo's menu should be collapsed when our parent receives focus, false (default) otherwise
| void SComboButton::SetOnGetMenuContent | ( | FOnGetContent | InOnGetMenuContent | ) |
See the OnGetMenuContent event
|
inline |
|
protected |
Can this button be focused?
|
protected |
Area where the button's content resides
The content widget, if any, set by the user on creation
|
protected |
Brush to use to add a "menu border" around the drop-down content
|
protected |
Padding to use to add a "menu border" around the drop-down content
|
protected |
Delegate to execute when the combo list is opened