Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Framework/Commands/Commands.h |
Include |
#include "Framework/Commands/Commands.h" |
template<typename CommandContextType>
class TCommands : public FBindingContext
A base class for a set of commands. Inherit from it to make a set of commands. See MainFrameActions for an example.
Name | Description | |
---|---|---|
|
~TCommands() |
Name | Description | ||
---|---|---|---|
|
const Comman... |
Get() |
Get the singleton instance of this set of commands. |
|
const FBindi... |
GetContext() |
Get the BindingContext for this set of commands. |
|
IsRegistered() |
||
|
Register() |
Use this method to register commands. Usually done in StartupModule(). |
|
|
RegisterCommands() |
Pure virtual to override; describe and instantiate the commands in here by using the UI COMMAND macro. |
|
|
Unregister() |
Use this method to clean up any resources used by the command set. Usually done in ShutdownModule() |
Name |
Description |
---|---|
Instance |
A static instance of the command set. |