A combo box that shows arbitrary content. 更多...
#include <SComboBox.h>
类 SComboBox< OptionType > 继承关系图:Public 类型 | |
| typedef TSlateDelegates< OptionType >::FOnGenerateWidget | FOnGenerateWidget |
| Delegate type used to generate widgets that represent Options | |
| typedef SListView< OptionType > | SComboListType |
| Type of list used for showing menu options. | |
Public 成员函数 | |
| void | Construct (const FArguments &InArgs) |
| Slot for this button's content (optional) 更多... | |
| NullableOptionType | GetSelectedItem () |
| void | RefreshOptions () |
| Requests a list refresh after updating options Call SetSelectedItem to update the selected item if required 更多... | |
Public 成员函数 继承自 SComboButton | |
| void | Construct (const FArguments &InArgs) |
| Construct the widget from a declaration 更多... | |
| virtual void | SetMenuContent (TSharedRef< SWidget > InContent) override |
| The visual style of the button (overrides ComboButtonStyle) 更多... | |
| void | SetOnGetMenuContent (FOnGetContent InOnGetMenuContent) |
| See the OnGetMenuContent event | |
Protected 成员函数 | |
| FReply | OnKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent) override |
| Handle key presses that SListView ignores | |
| virtual FReply | OnButtonClicked () |
| Handle the button being clicked by summoning the ComboButton. | |
额外继承的成员函数 | |
Protected 属性 继承自 SComboButton | |
| 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 | |
A combo box that shows arbitrary content.
|
inline |
Slot for this button's content (optional)
The visual style of the button part of the combo box (overrides ComboBoxStyle) Called when combo box is opened, before list is actually created The custom scrollbar to use in the ListView The option that should be selected when the combo box is first created The max height of the combo box menu The sound to play when the button is pressed (overrides ComboBoxStyle) The sound to play when the selection changes (overrides ComboBoxStyle) 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. When false, directional keys will change the selection. When true, ComboBox must be activated and will only capture arrow input while activated. When true, allows the combo box to receive keyboard focus True if this combo's menu should be collapsed when our parent receives focus, false (default) otherwise Construct the widget from a declaration
| InArgs | Declaration from which to construct the combo box |
|
inline |
|
inline |
Requests a list refresh after updating options Call SetSelectedItem to update the selected item if required