Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SInputKeySelector
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SInputKeySelector.h |
| Include | #include "Widgets/Input/SInputKeySelector.h" |
Syntax
class SInputKeySelector : public SCompoundWidget
Remarks
A widget for selecting keys or input chords.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
||
| bool | Returns true whenever key selection mode is active, otherwise returns false. | ||
| FInputChord | Gets the currently selected key chord. | ||
| void | SetAllowGamepadKeys
(
const bool bInAllowGamepadKeys |
When true gamepad keys are captured in the selected key chord, otherwise they are ignored. | |
| void | SetAllowModifierKeys
(
const bool bInAllowModifierKeys |
When true modifier keys are captured in the selected key chord, otherwise they are ignored. | |
| void | SetButtonStyle
(
const FButtonStyle* ButtonStyle |
Sets the style of the button which is used enter key selection mode. | |
| void | SetEscapeKeys
(
TArray< FKey > InEscapeKeys |
Sets the escape keys to check against. | |
| void | SetKeySelectionText
(
FText InKeySelectionText |
Sets the text which is displayed when selecting a key. | |
| void | SetMargin
(
TAttribute< FMargin > InMargin |
Sets the margin 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
(
TAttribute< FInputChord > InSelectedKey |
Sets the currently selected key chord. | |
| void | SetTextBlockVisibility
(
EVisibility InVisibility |
Sets the visibility of the text block. | |
| void | SetTextStyle
(
const FTextBlockStyle* InTextStyle |
Sets the style of the text on the button which is used enter key selection mode. |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| void | OnFocusLost
(
const FFocusEvent& InFocusEvent |
Called when this widget loses focus. This event does not bubble. | |
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| FReply | Called after a key is released when this widget has focus | ||
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FNavigationReply | OnNavigation
(
const FGeometry& MyGeometry, |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. | |
| FReply | OnPreviewKeyDown
(
const FGeometry& MyGeometry, |
Called after a key is pressed when this widget or a child of this widget has focus If a widget handles this event, OnKeyDown will not be passed to the focused widget. | |
| FReply | OnPreviewMouseButtonDown
(
const FGeometry& MyGeometry, |
Just like OnMouseButtonDown, but tunnels instead of bubbling. | |
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FOnIsSelectingKeyChanged | |
| FOnKeySelected |