engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 友元 | 所有成员列表
FInputChord结构体 参考

An Input Chord is a key and the modifier keys that are to be held with it. 更多...

#include <InputChord.h>

Public 类型

enum  ERelationshipType
 The ways two chords can be related to each other. 更多...
 

Public 成员函数

 FInputChord (const EModifierKey::Type InModifierKeys, const FKey InKey)
 Creates and initializes a new instance. 更多...
 
 FInputChord (const FInputChord &Other)
 Copy constructor. 更多...
 
 FInputChord (const FKey InKey, const EModifierKey::Type InModifierKeys)
 Creates and initializes a new instance. 更多...
 
FText GetInputText () const
 Gets a localized string that represents the chord. 更多...
 
FText GetKeyText () const
 Gets the key represented as a localized string. 更多...
 
ERelationshipType GetRelationship (const FInputChord &OtherChord) const
 Returns the relationship between this chord and another.
 
bool HasAnyModifierKeys () const
 Checks whether this chord requires an modifier keys to be pressed. 更多...
 
bool IsValidChord () const
 Determines if this chord is valid. 更多...
 
bool operator!= (const FInputChord &Other) const
 Compares this input chord with another for inequality. 更多...
 
bool operator== (const FInputChord &Other) const
 Compares this input chord with another for equality. 更多...
 
void Set (const FInputChord &InTemplate)
 Sets this chord to a new key and modifier state based on the provided template Should not be called directly. 更多...
 

Public 属性

uint32 bAlt:1
 Whether the alt key is part of the chord. 更多...
 
uint32 bCmd:1
 Whether the command key is part of the chord. 更多...
 
uint32 bCtrl:1
 Whether the control key is part of the chord. 更多...
 
uint32 bShift:1
 Whether the shift key is part of the chord. 更多...
 
FKey Key
 The Key is the core of the chord.
 

友元

uint32 GetTypeHash (const FInputChord &Chord)
 Gets a type hash value for the specified chord. 更多...
 

详细描述

An Input Chord is a key and the modifier keys that are to be held with it.

成员枚举类型说明

◆ ERelationshipType

The ways two chords can be related to each other.

A chord is considered masking when it has all the same modifier keys as another chord plus more.

构造及析构函数说明

◆ FInputChord() [1/3]

FInputChord::FInputChord ( const EModifierKey::Type  InModifierKeys,
const FKey  InKey 
)
inline

Creates and initializes a new instance.

参数
InKey
InModifierKeys

◆ FInputChord() [2/3]

FInputChord::FInputChord ( const FKey  InKey,
const EModifierKey::Type  InModifierKeys 
)
inline

Creates and initializes a new instance.

参数
InKey
InModifierKeys

◆ FInputChord() [3/3]

FInputChord::FInputChord ( const FInputChord &  Other)
inline

Copy constructor.

参数
Other

成员函数说明

◆ GetInputText()

FText FInputChord::GetInputText ( ) const

Gets a localized string that represents the chord.

返回
A localized string.

◆ GetKeyText()

FText FInputChord::GetKeyText ( ) const

Gets the key represented as a localized string.

返回
A localized string.

◆ HasAnyModifierKeys()

bool FInputChord::HasAnyModifierKeys ( ) const
inline

Checks whether this chord requires an modifier keys to be pressed.

返回
true if modifier keys must be pressed, false otherwise.

◆ IsValidChord()

bool FInputChord::IsValidChord ( ) const
inline

Determines if this chord is valid.

A chord is valid if it has a non modifier key that must be pressed and zero or more modifier keys that must be pressed

返回
true if the chord is valid

◆ operator!=()

bool FInputChord::operator!= ( const FInputChord &  Other) const
inline

Compares this input chord with another for inequality.

参数
OtherThe other chord to compare with.
返回
true if the chords are equal, false otherwise.

◆ operator==()

bool FInputChord::operator== ( const FInputChord &  Other) const
inline

Compares this input chord with another for equality.

参数
OtherThe other chord to compare with.
返回
true if the chords are equal, false otherwise.

◆ Set()

void FInputChord::Set ( const FInputChord &  InTemplate)
inline

Sets this chord to a new key and modifier state based on the provided template Should not be called directly.

Only used by the key binding editor to set user defined keys

友元及相关函数文档

◆ GetTypeHash

uint32 GetTypeHash ( const FInputChord &  Chord)
friend

Gets a type hash value for the specified chord.

参数
ChordThe input chord to get the hash value for.
返回
The hash value.

类成员变量说明

◆ bAlt

uint32 FInputChord::bAlt

Whether the alt key is part of the chord.


◆ bCmd

uint32 FInputChord::bCmd

Whether the command key is part of the chord.


◆ bCtrl

uint32 FInputChord::bCtrl

Whether the control key is part of the chord.


◆ bShift

uint32 FInputChord::bShift

Whether the shift key is part of the chord.



该结构体的文档由以下文件生成: