Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Commands
References
Module | Slate |
Header | /Engine/Source/Runtime/Slate/Public/Framework/Commands/InputChord.h |
Include | #include "Framework/Commands/InputChord.h" |
Syntax
USTRUCT (BlueprintType )
struct FInputChord
Remarks
An Input Chord is a key and the modifier keys that are to be held with it.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
uint32: 1 | bAlt | Whether the alt key is part of the chord. |
![]() ![]() ![]() ![]() |
uint32: 1 | bCmd | Whether the command key is part of the chord. |
![]() ![]() ![]() ![]() |
uint32: 1 | bCtrl | Whether the control key is part of the chord. |
![]() ![]() ![]() ![]() |
uint32: 1 | bShift | Whether the shift key is part of the chord. |
![]() ![]() ![]() ![]() |
FKey | Key | The Key is the core of the chord. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FInputChord () |
||
![]() |
FInputChord
(
const FKey InKey |
||
![]() |
FInputChord
(
const FInputChord& Other |
Copy constructor. | |
![]() |
FInputChord
(
FInputChord&& Other |
Move constructor. | |
![]() |
FInputChord
(
const EModifierKey::Type InModifierKeys, |
Creates and initializes a new instance. | |
![]() |
FInputChord
(
const FKey InKey, |
Creates and initializes a new instance. | |
![]() |
FInputChord
(
const FKey InKey, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FText | GetInputText
(
const bool bLongDisplayName |
Gets a localized string that represents the chord. |
![]() ![]() |
FText | GetKeyText
(
const bool bLongDisplayName |
Gets the key represented as a localized string. |
![]() ![]() |
FText | GetModifierText
(
TOptional< FText > ModifierAppender |
Gets the localized string for the modifier portion of the coord. |
![]() ![]() |
ERelationshipType | GetRelationship
(
const FInputChord& OtherChord |
Returns the relationship between this chord and another. |
![]() ![]() |
bool | Checks whether this chord requires an modifier keys to be pressed. | |
![]() ![]() |
bool | IsValidChord () |
Determines if this chord is valid. |
![]() ![]() |
bool | NeedsAlt () |
|
![]() ![]() |
bool | NeedsCommand () |
|
![]() ![]() |
bool | NeedsControl () |
|
![]() ![]() |
bool | NeedsShift () |
|
![]() |
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. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FInputChord& Other |
Compares this input chord with another for inequality. |
![]() |
FInputChord & | operator=
(
const FInputChord& Other |
Copy assignment operator. |
![]() |
FInputChord & | operator=
(
FInputChord&& Other |
Move assignment operator. |
![]() ![]() |
bool | operator==
(
const FInputChord& Other |
Compares this input chord with another for equality. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ERelationshipType | The ways two chords can be related to each other. |