engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 属性 | 所有成员列表
FBindingContext类 参考

Represents a context in which input bindings are valid 更多...

#include <UICommandInfo.h>

+ 类 FBindingContext 继承关系图:

Public 成员函数

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 属性

static FOnBindingContextChanged CommandsChanged
 A delegate that is called when commands are registered or unregistered with a binding context
 

额外继承的成员函数

- 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 成员函数 继承自 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. 更多...
 

详细描述

Represents a context in which input bindings are valid

构造及析构函数说明

◆ FBindingContext()

FBindingContext::FBindingContext ( const FName  InContextName,
const FText &  InContextDesc,
const FName  InContextParent,
const FName  InStyleSetName 
)
inline

Constructor

参数
InContextNameThe name of the context
InContextDescThe localized description of the context
InContextParentOptional parent context. Bindings are not allowed to be the same between parent and child contexts
InStyleSetNameThe style set to find the icons in, eg) FCoreStyle::Get().GetStyleSetName()

成员函数说明

◆ AddBundle()

void FBindingContext::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.

参数
NameA unique identifier for the bundle in this context
DescA localized description of the bundle

◆ GetBundleLabel()

const FText & FBindingContext::GetBundleLabel ( const FName  Name)

Gets a localized label of a command bundle

参数
NameThe name of the bundle to get a label for
返回
The localized label of the bundle

◆ GetContextDesc()

const FText & FBindingContext::GetContextDesc ( ) const
inline
返回
The localized description of this context

◆ GetContextName()

FName FBindingContext::GetContextName ( ) const
inline
返回
The name of the context

◆ GetContextParent()

FName FBindingContext::GetContextParent ( ) const
inline
返回
The name of the parent context (or NAME_None if there isnt one)

◆ GetStyleSetName()

FName FBindingContext::GetStyleSetName ( ) const
inline
返回
The name of the style set to find the icons in

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