engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Protected 成员函数 | 所有成员列表
SComboBox< OptionType > 模板类 参考

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
 

详细描述

template<typename OptionType>
class SComboBox< OptionType >

A combo box that shows arbitrary content.

成员函数说明

◆ Construct()

template<typename OptionType >
void SComboBox< OptionType >::Construct ( const FArguments &  InArgs)
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

参数
InArgsDeclaration from which to construct the combo box

◆ GetSelectedItem()

template<typename OptionType >
NullableOptionType SComboBox< OptionType >::GetSelectedItem ( )
inline
返回
the item currently selected by the combo box.

◆ RefreshOptions()

template<typename OptionType >
void SComboBox< OptionType >::RefreshOptions ( )
inline

Requests a list refresh after updating options Call SetSelectedItem to update the selected item if required

参见
SetSelectedItem

该类的文档由以下文件生成: