engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FUIAction结构体 参考

Implements an UI action. 更多...

#include <UIAction.h>

Public 成员函数

bool CanExecute () const
 Checks to see if its currently safe to execute this action. 更多...
 
bool CanRepeat () const
 Checks whether this action can be repeated if the chord used to call it is held down. 更多...
 
bool Execute () const
 Executes this action
 
 FUIAction ()
 Default constructor.
 
 FUIAction (FExecuteAction InitExecuteAction, EUIActionRepeatMode InitRepeatMode=EUIActionRepeatMode::RepeatDisabled)
 Constructor that takes delegates to initialize the action with 更多...
 
 FUIAction (FExecuteAction InitExecuteAction, FCanExecuteAction InitCanExecuteAction, EUIActionRepeatMode InitRepeatMode=EUIActionRepeatMode::RepeatDisabled)
 Constructor that takes delegates to initialize the action with 更多...
 
 FUIAction (FExecuteAction InitExecuteAction, FCanExecuteAction InitCanExecuteAction, FGetActionCheckState InitGetActionCheckStateDelegate, EUIActionRepeatMode InitRepeatMode=EUIActionRepeatMode::RepeatDisabled)
 Constructor that takes delegates to initialize the action with 更多...
 
 FUIAction (FExecuteAction InitExecuteAction, FCanExecuteAction InitCanExecuteAction, FGetActionCheckState InitGetActionCheckStateDelegate, FIsActionButtonVisible InitIsActionVisibleDelegate, EUIActionRepeatMode InitRepeatMode=EUIActionRepeatMode::RepeatDisabled)
 Constructor that takes delegates to initialize the action with 更多...
 
 FUIAction (FExecuteAction InitExecuteAction, FCanExecuteAction InitCanExecuteAction, FIsActionChecked InitIsCheckedDelegate, EUIActionRepeatMode InitRepeatMode=EUIActionRepeatMode::RepeatDisabled)
 Constructor that takes delegates to initialize the action with 更多...
 
 FUIAction (FExecuteAction InitExecuteAction, FCanExecuteAction InitCanExecuteAction, FIsActionChecked InitIsCheckedDelegate, FIsActionButtonVisible InitIsActionVisibleDelegate, EUIActionRepeatMode InitRepeatMode=EUIActionRepeatMode::RepeatDisabled)
 Constructor that takes delegates to initialize the action with 更多...
 
ECheckBoxState GetCheckState () const
 Queries the checked state for this action. 更多...
 
bool IsBound () const
 Checks whether this action's execution delegate is bound. 更多...
 
EVisibility IsVisible () const
 Queries the visibility for this action. 更多...
 

静态 Public 成员函数

static ECheckBoxState IsActionCheckedPassthrough (FIsActionChecked InDelegate)
 Passthrough function to convert the result from an FIsActionChecked delegate into something that works with a FGetActionCheckState delegate
 

Public 属性

FCanExecuteAction CanExecuteAction
 Holds a delegate that is executed when determining whether this action can execute.
 
FExecuteAction ExecuteAction
 Holds a delegate that is executed when this action is activated.
 
FGetActionCheckState GetActionCheckState
 Holds a delegate that is executed when determining the check state of this action.
 
FIsActionButtonVisible IsActionVisibleDelegate
 Holds a delegate that is executed when determining whether this action is visible.
 
EUIActionRepeatMode RepeatMode
 Can this action can be repeated if the chord used to call it is held down?
 

详细描述

Implements an UI action.

构造及析构函数说明

◆ FUIAction() [1/6]

FUIAction::FUIAction ( FExecuteAction  InitExecuteAction,
EUIActionRepeatMode  InitRepeatMode = EUIActionRepeatMode::RepeatDisabled 
)

Constructor that takes delegates to initialize the action with

参数
ExecuteActionThe delegate to call when the action should be executed
RepeatModeCan this action can be repeated if the chord used to call it is held down?

◆ FUIAction() [2/6]

FUIAction::FUIAction ( FExecuteAction  InitExecuteAction,
FCanExecuteAction  InitCanExecuteAction,
EUIActionRepeatMode  InitRepeatMode = EUIActionRepeatMode::RepeatDisabled 
)

Constructor that takes delegates to initialize the action with

参数
ExecuteActionThe delegate to call when the action should be executed
CanExecuteActionThe delegate to call to see if the action can be executed
RepeatModeCan this action can be repeated if the chord used to call it is held down?

◆ FUIAction() [3/6]

FUIAction::FUIAction ( FExecuteAction  InitExecuteAction,
FCanExecuteAction  InitCanExecuteAction,
FIsActionChecked  InitIsCheckedDelegate,
EUIActionRepeatMode  InitRepeatMode = EUIActionRepeatMode::RepeatDisabled 
)

Constructor that takes delegates to initialize the action with

参数
ExecuteActionThe delegate to call when the action should be executed
CanExecuteActionThe delegate to call to see if the action can be executed
IsCheckedDelegateThe delegate to call to see if the action should appear checked when visualized
RepeatModeCan this action can be repeated if the chord used to call it is held down?

◆ FUIAction() [4/6]

FUIAction::FUIAction ( FExecuteAction  InitExecuteAction,
FCanExecuteAction  InitCanExecuteAction,
FGetActionCheckState  InitGetActionCheckStateDelegate,
EUIActionRepeatMode  InitRepeatMode = EUIActionRepeatMode::RepeatDisabled 
)

Constructor that takes delegates to initialize the action with

参数
ExecuteActionThe delegate to call when the action should be executed
CanExecuteActionThe delegate to call to see if the action can be executed
GetActionCheckStateThe delegate to call to see what the check state of the action should be
RepeatModeCan this action can be repeated if the chord used to call it is held down?

◆ FUIAction() [5/6]

FUIAction::FUIAction ( FExecuteAction  InitExecuteAction,
FCanExecuteAction  InitCanExecuteAction,
FIsActionChecked  InitIsCheckedDelegate,
FIsActionButtonVisible  InitIsActionVisibleDelegate,
EUIActionRepeatMode  InitRepeatMode = EUIActionRepeatMode::RepeatDisabled 
)

Constructor that takes delegates to initialize the action with

参数
ExecuteActionThe delegate to call when the action should be executed
CanExecuteActionThe delegate to call to see if the action can be executed
IsCheckedDelegateThe delegate to call to see if the action should appear checked when visualized
IsActionVisibleThe delegate to call to see if the action should be visible
RepeatModeCan this action can be repeated if the chord used to call it is held down?

◆ FUIAction() [6/6]

FUIAction::FUIAction ( FExecuteAction  InitExecuteAction,
FCanExecuteAction  InitCanExecuteAction,
FGetActionCheckState  InitGetActionCheckStateDelegate,
FIsActionButtonVisible  InitIsActionVisibleDelegate,
EUIActionRepeatMode  InitRepeatMode = EUIActionRepeatMode::RepeatDisabled 
)

Constructor that takes delegates to initialize the action with

参数
ExecuteActionThe delegate to call when the action should be executed
CanExecuteActionThe delegate to call to see if the action can be executed
GetActionCheckStateThe delegate to call to see what the check state of the action should be
IsActionVisibleThe delegate to call to see if the action should be visible
RepeatModeCan this action can be repeated if the chord used to call it is held down?

成员函数说明

◆ CanExecute()

bool FUIAction::CanExecute ( ) const
inline

Checks to see if its currently safe to execute this action.

返回
True if this action can be executed and we should reflect that state visually in the UI

◆ CanRepeat()

bool FUIAction::CanRepeat ( ) const
inline

Checks whether this action can be repeated if the chord used to call it is held down.

返回
true if the delegate can be repeated, false otherwise.

◆ GetCheckState()

ECheckBoxState FUIAction::GetCheckState ( ) const
inline

Queries the checked state for this action.

This is only valid for actions that are toggleable!

返回
Checked state for this action

◆ IsBound()

bool FUIAction::IsBound ( ) const
inline

Checks whether this action's execution delegate is bound.

返回
true if the delegate is bound, false otherwise.

◆ IsVisible()

EVisibility FUIAction::IsVisible ( ) const
inline

Queries the visibility for this action.

返回
Visibility state for this action

该结构体的文档由以下文件生成: