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.
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.
|
inline |
Creates and initializes a new instance.
| InKey | |
| InModifierKeys |
|
inline |
Creates and initializes a new instance.
| InKey | |
| InModifierKeys |
|
inline |
Copy constructor.
| Other |
| FText FInputChord::GetInputText | ( | ) | const |
Gets a localized string that represents the chord.
| FText FInputChord::GetKeyText | ( | ) | const |
Gets the key represented as a localized string.
|
inline |
Checks whether this chord requires an modifier keys to be pressed.
|
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
|
inline |
Compares this input chord with another for inequality.
| Other | The other chord to compare with. |
|
inline |
Compares this input chord with another for equality.
| Other | The other chord to compare with. |
|
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
|
friend |
Gets a type hash value for the specified chord.
| Chord | The input chord to get the hash value for. |
| uint32 FInputChord::bAlt |
Whether the alt key is part of the chord.
| uint32 FInputChord::bCmd |
Whether the command key is part of the chord.
| uint32 FInputChord::bCtrl |
Whether the control key is part of the chord.
| uint32 FInputChord::bShift |
Whether the shift key is part of the chord.