UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UICommandList.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "InputCoreTypes.h"
7#include "Layout/Visibility.h"
10
11struct FKeyEvent;
12struct FPointerEvent;
13
15 : public TSharedFromThis<FUICommandList>
16{
17public:
18
20 virtual ~FUICommandList() {}
21
24
33
43
54
65
77
89
97
107
112
119
126
134
141
149
156
163
171
179
188 SLATE_API bool ProcessCommandBindings( const FKey Key, const FModifierKeysState& ModifierKeysState, const bool bRepeat ) const;
189
192
199
206
207protected:
208
219 SLATE_API bool ConditionalProcessCommandBindings( const FKey Key, bool bCtrl, bool bAlt, bool bShift, bool bCmd, bool bRepeat ) const;
220
231
242
245
248
249private:
250
253
255 TSet<FName> ContextsInList;
256
258 FUIBindingMap UICommandBindingMap;
259
261 FUIContextMap UICommandContextMap;
262
264 TArray<TWeakPtr<FUICommandList>> ParentUICommandLists;
265 TArray<TWeakPtr<FUICommandList>> ChildUICommandLists;
266
268 FCanProduceActionForCommand CanProduceActionForCommand;
269
272};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECheckBoxState
Definition SlateTypes.h:65
EUIActionRepeatMode
Definition UIAction.h:27
Definition GenericApplication.h:75
Definition UICommandList.h:16
SLATE_API const FUIAction * GetActionForCommand(TSharedPtr< const FUICommandInfo > Command) const
Definition UICommandList.cpp:254
SLATE_API const FUIAction * GetActionForCommandRecursively(const TSharedRef< const FUICommandInfo > &Command, bool bIncludeChildren, bool bIncludeParents, TSet< TSharedRef< const FUICommandList > > &InOutVisitedLists) const
Definition UICommandList.cpp:304
virtual ~FUICommandList()
Definition UICommandList.h:20
SLATE_API bool ConditionalProcessCommandBindings(const FKey Key, bool bCtrl, bool bAlt, bool bShift, bool bCmd, bool bRepeat) const
Definition UICommandList.cpp:203
SLATE_API void MapAction(const TSharedPtr< const FUICommandInfo > InUICommandInfo, FExecuteAction ExecuteAction, EUIActionRepeatMode RepeatMode=EUIActionRepeatMode::RepeatDisabled)
Definition UICommandList.cpp:11
void SetCanProduceActionForCommand(const FCanProduceActionForCommand &NewCanProduceActionForCommand)
Definition UICommandList.h:191
SLATE_API bool CanExecuteAction(const TSharedRef< const FUICommandInfo > InUICommandInfo) const
Definition UICommandList.cpp:124
friend struct RecursiveCommandDataGetter
Definition UICommandList.h:271
SLATE_API const FUIActionContext * GetContextForCommand(TSharedPtr< const FUICommandInfo > Command) const
Definition UICommandList.cpp:279
SLATE_API const FUIActionContext * GetContextForCommandRecursively(const TSharedRef< const FUICommandInfo > &Command, bool bIncludeChildren, bool bIncludeParents, TSet< TSharedRef< const FUICommandList > > &InOutVisitedLists) const
Definition UICommandList.cpp:375
SLATE_API bool TryExecuteAction(const TSharedRef< const FUICommandInfo > InUICommandInfo) const
Definition UICommandList.cpp:138
virtual SLATE_API bool ExecuteAction(const TSharedRef< const FUICommandInfo > InUICommandInfo) const
Definition UICommandList.cpp:108
SLATE_API void GatherContextsForList(TSet< FName > &OutAllContexts) const
Definition UICommandList.cpp:446
SLATE_API bool ProcessCommandBindings(const FKeyEvent &InKeyEvent) const
Definition UICommandList.cpp:176
SLATE_API void UnmapAction(const TSharedPtr< const FUICommandInfo > InUICommandInfo)
Definition UICommandList.cpp:96
SLATE_API ECheckBoxState GetCheckState(const TSharedRef< const FUICommandInfo > InUICommandInfo) const
Definition UICommandList.cpp:163
SLATE_API EVisibility GetVisibility(const TSharedRef< const FUICommandInfo > InUICommandInfo) const
Definition UICommandList.cpp:149
SLATE_API void GatherContextsForListRecursively(TSet< FName > &OutAllContexts, TSet< TSharedRef< const FUICommandList > > &InOutVisitedLists) const
Definition UICommandList.cpp:453
SLATE_API bool IsActionMapped(const TSharedPtr< const FUICommandInfo > InUICommandInfo) const
Definition UICommandList.cpp:102
DECLARE_DELEGATE_RetVal_OneParam(bool, FCanProduceActionForCommand, const TSharedRef< const FUICommandInfo > &)
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition SharedPointer.h:1640
Definition SharedPointer.h:153
Definition Visibility.h:12
Definition Events.h:431
Definition InputCoreTypes.h:50
Definition Events.h:695
Definition UIAction.h:230
Definition UIAction.h:37