FUIAction

Implements an UI action.

Windows
MacOS
Linux

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

Name Description

Public variable

FCanExecuteActi...

 

CanExecuteAction

Holds a delegate that is executed when determining whether this action can execute.

Public variable

FExecuteAction

 

ExecuteAction

Holds a delegate that is executed when this action is activated.

Public variable

FGetActionCheck...

 

GetActionCheckState

Holds a delegate that is executed when determining the check state of this action.

Public variable

FIsActionButton...

 

IsActionVisibleDelegate

Holds a delegate that is executed when determining whether this action is visible.

Public variable

EUIActionRepeat...

 

RepeatMode

Can this action can be repeated if the chord used to call it is held down?

Constructors

Name Description

Public function

FUIAction()

Default constructor.

Public function

FUIAction

(
    FExecuteAction InitExecuteAction,
    EUIActionRepeatMode InitRepeatMode
)

Constructor that takes delegates to initialize the action with

Public function

FUIAction

(
    FExecuteAction InitExecuteAction,
    FCanExecuteAction InitCanExecuteAct...,
    EUIActionRepeatMode InitRepeatMode
)

Constructor that takes delegates to initialize the action with

Public function

FUIAction

(
    FExecuteAction InitExecuteAction,
    FCanExecuteAction InitCanExecuteAct...,
    FIsActionChecked InitIsCheckedDeleg...,
    EUIActionRepeatMode InitRepeatMode
)

Constructor that takes delegates to initialize the action with

Public function

FUIAction

(
    FExecuteAction InitExecuteAction,
    FCanExecuteAction InitCanExecuteAct...,
    FGetActionCheckState InitGetActionC...,
    EUIActionRepeatMode InitRepeatMode
)

Constructor that takes delegates to initialize the action with

Public function

FUIAction

(
    FExecuteAction InitExecuteAction,
    FCanExecuteAction InitCanExecuteAct...,
    FIsActionChecked InitIsCheckedDeleg...,
    FIsActionButtonVisible InitIsAction...,
    EUIActionRepeatMode InitRepeatMode
)

Constructor that takes delegates to initialize the action with

Public function

FUIAction

(
    FExecuteAction InitExecuteAction,
    FCanExecuteAction InitCanExecuteAct...,
    FGetActionCheckState InitGetActionC...,
    FIsActionButtonVisible InitIsAction...,
    EUIActionRepeatMode InitRepeatMode
)

Constructor that takes delegates to initialize the action with

Functions

Name Description

Public function Const

bool

 

CanExecute()

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

Public function Const

bool

 

CanRepeat()

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

Public function Const

bool

 

Execute()

Executes this action

Public function Const

ECheckBoxSta...

 

GetCheckState()

Queries the checked state for this action. This is only valid for actions that are toggleable!

Public function Static

ECheckBoxSta...

 

IsActionCheckedPassthrough

(
    FIsActionChecked InDelegate
)

Passthrough function to convert the result from an FIsActionChecked delegate into something that works with a FGetActionCheckState delegate

Public function Const

bool

 

IsBound()

Checks whether this action's execution delegate is bound.

Public function Const

EVisibility

 

IsVisible()

Queries the visibility for this action.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss