engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | Protected 成员函数 | 静态 Protected 属性 | 所有成员列表
TCommands< CommandContextType > 模板类 参考abstract

A base class for a set of commands. 更多...

#include <Commands.h>

+ 类 TCommands< CommandContextType > 继承关系图:

静态 Public 成员函数

static FORCENOINLINE const CommandContextType & Get ()
 Get the singleton instance of this set of commands.
 
static FORCENOINLINE const FBindingContext & GetContext ()
 Get the BindingContext for this set of commands.
 
static FORCENOINLINE void Register ()
 Use this method to register commands. 更多...
 
static FORCENOINLINE void Unregister ()
 Use this method to clean up any resources used by the command set. 更多...
 

Protected 成员函数

virtual void RegisterCommands ()=0
 Pure virtual to override; describe and instantiate the commands in here by using the UI COMMAND macro.
 
 TCommands (const FName InContextName, const FText &InContextDesc, const FName InContextParent, const FName InStyleSetName)
 Construct a set of commands; call this from your custom commands class.
 
- Protected 成员函数 继承自 TSharedFromThis< FBindingContext >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 

静态 Protected 属性

static TWeakPtr< CommandContextType > Instance = NULL
 A static instance of the command set.
 

额外继承的成员函数

- Public 成员函数 继承自 FBindingContext
void AddBundle (const FName Name, const FText &Desc)
 Adds a new command bundle to this context that can be referenced by name from commands within the context. 更多...
 
 FBindingContext (const FName InContextName, const FText &InContextDesc, const FName InContextParent, const FName InStyleSetName)
 Constructor 更多...
 
const FText & GetBundleLabel (const FName Name)
 Gets a localized label of a command bundle 更多...
 
const FText & GetContextDesc () const
 
FName GetContextName () const
 
FName GetContextParent () const
 
FName GetStyleSetName () const
 
FUICommandInfoDecl NewCommand (const FName InCommandName, const FText &InCommandLabel, const FText &InCommandDesc)
 Creates a new command declaration used to populate commands with data
 
- Public 成员函数 继承自 TSharedFromThis< FBindingContext >
TSharedRef< FBindingContext, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FBindingContext const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
- 静态 Public 属性 继承自 FBindingContext
static FOnBindingContextChanged CommandsChanged
 A delegate that is called when commands are registered or unregistered with a binding context
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< FBindingContext >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

template<typename CommandContextType>
class TCommands< CommandContextType >

A base class for a set of commands.

Inherit from it to make a set of commands. See MainFrameActions for an example.

成员函数说明

◆ Register()

template<typename CommandContextType >
static FORCENOINLINE void TCommands< CommandContextType >::Register ( )
inlinestatic

Use this method to register commands.

Usually done in StartupModule().

◆ Unregister()

template<typename CommandContextType >
static FORCENOINLINE void TCommands< CommandContextType >::Unregister ( )
inlinestatic

Use this method to clean up any resources used by the command set.

Usually done in ShutdownModule()


该类的文档由以下文件生成: