Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Commands
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Commands/UIAction.h |
| Include | #include "Framework/Commands/UIAction.h" |
Syntax
struct FUIAction
Remarks
Implements an UI action.
Variables
| Type | Name | Description | |
|---|---|---|---|
| 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? |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FUIAction () |
Default constructor. | ||
FUIAction
(
FExecuteAction InitExecuteAction, |
Constructor that takes delegates to initialize the action with | ||
FUIAction
(
FExecuteAction InitExecuteAction, |
Constructor that takes delegates to initialize the action with | ||
FUIAction
(
FExecuteAction InitExecuteAction, |
Constructor that takes delegates to initialize the action with | ||
FUIAction
(
FExecuteAction InitExecuteAction, |
Constructor that takes delegates to initialize the action with | ||
FUIAction
(
FExecuteAction InitExecuteAction, |
Constructor that takes delegates to initialize the action with | ||
FUIAction
(
FExecuteAction InitExecuteAction, |
Constructor that takes delegates to initialize the action with |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanExecute () |
Checks to see if its currently safe to execute this action. | |
| bool | CanRepeat () |
Checks whether this action can be repeated if the chord used to call it is held down. | |
| bool | Execute () |
Executes this action | |
| ECheckBoxState | Queries the checked state for this action. This is only valid for actions that are toggleable! | ||
| ECheckBoxState | IsActionCheckedPassthrough
(
FIsActionChecked InDelegate |
Passthrough function to convert the result from an FIsActionChecked delegate into something that works with a FGetActionCheckState delegate | |
| bool | IsBound () |
Checks whether this action's execution delegate is bound. | |
| EVisibility | IsVisible () |
Queries the visibility for this action. |