Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/InputKeySelector.h |
Include | #include "Components/InputKeySelector.h" |
Syntax
UCLASS (MinimalAPI)
class UInputKeySelector : public UWidget
Remarks
A widget for selecting a single key or a single key with a modifier.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() ![]() |
bool | bAllowGamepadKeys | When true gamepad keys are allowed in the input chord representing the selected key, otherwise they are ignored. |
![]() ![]() ![]() ![]() ![]() |
bool | bAllowModifierKeys | When true modifier keys such as control and alt are allowed in the input chord representing the selected key, if false modifier keys are ignored. |
![]() ![]() ![]() ![]() |
TArray< FKey > | EscapeKeys | When true gamepad keys are allowed in the input chord representing the selected key, otherwise they are ignored. |
![]() ![]() ![]() ![]() ![]() |
FText | KeySelectionText | Sets the text which is displayed while selecting keys. |
![]() ![]() ![]() ![]() ![]() |
FMargin | Margin | The amount of blank space around the text used to display the currently selected key. |
![]() ![]() ![]() ![]() ![]() |
FText | NoKeySpecifiedText | Sets the text to display when no key text is available or not selecting a key. |
![]() ![]() ![]() ![]() |
FOnIsSelectingKeyChanged | OnIsSelectingKeyChanged | Called whenever the key selection mode starts or stops. |
![]() ![]() ![]() ![]() |
FOnKeySelected | OnKeySelected | Called whenever a new key is selected by the user. |
![]() ![]() ![]() ![]() ![]() |
FInputChord | SelectedKey | The currently selected key chord. |
![]() ![]() ![]() ![]() ![]() |
FTextBlockStyle | TextStyle | The button style used at runtime |
![]() ![]() ![]() ![]() ![]() |
FButtonStyle | WidgetStyle | The button style used at runtime |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UInputKeySelector
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Returns true if gamepad keys are allowed, otherwise returns false. | |
![]() ![]() |
bool | Returns true if modifier keys keys are allowed, otherwise returns false. | |
![]() ![]() |
const FButtonStyle & | Returns the style of the button used to start key selection mode. | |
![]() ![]() ![]() ![]() |
bool | Returns true if the widget is currently selecting a key, otherwise returns false. | |
![]() ![]() |
const FText & | Returns the text which is displayed while selecting keys. | |
![]() ![]() |
const FMargin & | GetMargin () |
Returns the amount of blank space around the text used to display the currently selected key. |
![]() ![]() |
const FText & | Returns the text to display when no key text is available or not selecting a key. | |
![]() ![]() |
FInputChord | Returns the currently selected key. | |
![]() ![]() |
const FTextBlockStyle & | GetTextStyle () |
Returns the style of the text used inside the button. |
![]() ![]() |
void | Serialize
(
FArchive& Ar |
|
![]() ![]() ![]() |
void | SetAllowGamepadKeys
(
bool bInAllowGamepadKeys |
Sets whether or not gamepad keys are allowed in the selected key. |
![]() ![]() ![]() |
void | SetAllowModifierKeys
(
bool bInAllowModifierKeys |
Sets whether or not modifier keys are allowed in the selected key. |
![]() |
void | SetButtonStyle
(
const FButtonStyle& ButtonStyle |
Sets the style of the button used to start key selection mode. |
![]() |
void | SetButtonStyle
(
const FButtonStyle* ButtonStyle |
Sets the style of the button used to start key selection mode. |
![]() ![]() ![]() |
void | SetEscapeKeys
(
const TArray< FKey >& InKeys |
Sets escape keys. |
![]() ![]() ![]() |
void | SetKeySelectionText
(
FText InKeySelectionText |
Sets the text which is displayed while selecting keys. |
![]() |
void | SetMargin
(
const FMargin& InMargin |
Sets the amount of blank space around the text used to display the currently selected key. |
![]() ![]() ![]() |
void | SetNoKeySpecifiedText
(
FText InNoKeySpecifiedText |
Sets the text to display when no key text is available or not selecting a key. |
![]() ![]() ![]() |
void | SetSelectedKey
(
const FInputChord& InSelectedKey |
Sets the currently selected key. |
![]() ![]() ![]() |
void | SetTextBlockVisibility
(
const ESlateVisibility InVisibility |
Sets the visibility of the text block. |
![]() |
void | SetTextStyle
(
const FTextBlockStyle& InTextStyle |
Sets the style of the text used inside the button. |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FText | Gets the palette category of the widget | |
![]() ![]() |
TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | |
![]() ![]() |
void | Applies all properties to the native widget if possible. |
Overridden from UVisual
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ReleaseSlateResources
(
bool bReleaseChildren |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnIsSelectingKeyChanged | ||
![]() |
FOnKeySelected |