engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
SComboButton类 参考

A button that, when clicked, brings up a popup. 更多...

#include <SComboButton.h>

+ 类 SComboButton 继承关系图:

Public 成员函数

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 成员函数

virtual FReply OnButtonClicked ()
 Handle the button being clicked by summoning the ComboButton.
 

Protected 属性

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 button that, when clicked, brings up a popup.

成员函数说明

◆ Construct()

void SComboButton::Construct ( const FArguments &  InArgs)

Construct the widget from a declaration

参数
InArgsThe declaration from which to construct

◆ SetMenuContent()

virtual void SComboButton::SetMenuContent ( TSharedRef< SWidget >  InContent)
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


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