Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Commands
Inheritance Hierarchy
- TSharedFromThis
- FUICommandList
- FUICommandList_Pinnable
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Commands/UICommandList.h |
| Include | #include "Framework/Commands/UICommandList.h" |
Syntax
class FUICommandList : public TSharedFromThis< FUICommandList >
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Append
(
const TSharedRef< FUICommandList >& InCommandsToAppend |
Append commands in InCommandsToAppend to this command list. | |
| bool | CanExecuteAction
(
const TSharedRef< const FUICommandInfo > InUICommandInfo |
Calls the CanExecuteAction associated with the provided command info to see if ExecuteAction can be called | |
| bool | ConditionalProcessCommandBindings
(
const FKey Key, |
Helper function to execute delegate or exec command associated with a command (if valid) | |
| bool | ExecuteAction
(
const TSharedRef< const FUICommandInfo > InUICommandInfo |
Executes the action associated with the provided command info Note: It is assumed at this point that CanExecuteAction was already checked | |
| void | GatherContextsForList
(
TSet< FName >& OutAllContexts |
Returns all contexts associated with this list. | |
| void | GatherContextsForListRecursively
(
TSet< FName >& OutAllContexts, |
Returns all contexts associated with this list. | |
| const FUIAction * | GetActionForCommand
(
TSharedPtr< const FUICommandInfo > Command |
Attempts to find an action for the specified command in the current UICommandList. | |
| const FUIAction * | GetActionForCommandRecursively
(
const TSharedRef< const FUICommandInfo >& Command, |
Attempts to find an action for the specified command in the current UICommandList. | |
| ECheckBoxState | GetCheckState
(
const TSharedRef< const FUICommandInfo > InUICommandInfo |
Calls the GetCheckState delegate to see if the visualization of this command in a multibox should appear checked | |
| const FUIActionContext * | GetContextForCommand
(
TSharedPtr< const FUICommandInfo > Command |
Attempts to find an context for the specified command in the current UICommandList. | |
| const FUIActionContext * | GetContextForCommandRecursively
(
const TSharedRef< const FUICommandInfo >& Command, |
Attempts to find an context for the specified command in the current UICommandList. | |
| EVisibility | GetVisibility
(
const TSharedRef< const FUICommandInfo > InUICommandInfo |
Calls the IsVisible delegate associated with the provided command info to see if the command should be visible in a toolbar | |
| bool | IsActionMapped
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo |
Checks if an action is already mapped | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input Additionally, add a container of context objects to also associate with this command | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| void | MapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo, |
Maps a command info to a series of delegates that are executed by a multibox or mouse/keyboard input | |
| bool | ProcessCommandBindings
(
const FKeyEvent& InKeyEvent |
Processes any UI commands which are activated by the specified key event | |
| bool | ProcessCommandBindings
(
const FPointerEvent& InMouseEvent |
Processes any UI commands which are activated by the specified mouse event | |
| bool | ProcessCommandBindings
(
const FKey Key, |
Processes any UI commands which are activated by the specified key, modifier keys state and input event | |
| void | SetCanProduceActionForCommand
(
const FCanProduceActionForCommand& NewCanProduceActionForCommand |
Sets the delegate that determines if this UICommandList is capable of producing an action for the supplied command | |
| bool | TryExecuteAction
(
const TSharedRef< const FUICommandInfo > InUICommandInfo |
Attempts to execute the action associated with the provided command info Note: This will check if the action can be executed before finally executing the action | |
| void | UnmapAction
(
const TSharedPtr< const FUICommandInfo > InUICommandInfo |
Unmaps a command info that was previously mapped |
Typedefs
| Name | Description |
|---|---|
| FCanProduceActionForCommand | Determines if this UICommandList is capable of producing an action for the supplied command |
| FUIBindingMap | |
| FUIContextMap |