Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SSuggestionTextBox
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSuggestionTextBox.h |
| Include | #include "Widgets/Input/SSuggestionTextBox.h" |
Syntax
class SSuggestionTextBox : public SCompoundWidget
Remarks
Implements an editable text box that can show auto-complete histories and suggestions lists.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clears the list of suggestions and hides the suggestions list. | ||
| void | Construct
(
const FArguments& InArgs |
Construct this widget. Called by the SNew()Slate macro. | |
| void | FocusTextBox () |
Sets the keyboard focus to the text box. | |
| FString | Gets the string value of the currently selected suggestion. | ||
| FText | GetText () |
Returns the text string. | |
| void | Highlights the selected suggestion in the suggestion list. | ||
| void | Sets an optional error string. | ||
| void | SetSuggestions
(
TArray< FString >& SuggestionStrings, |
Sets the list of suggestions. | |
| void | SetText
(
const TAttribute< FText >& InNewText |
Sets the text string currently being edited |
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) | ||
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |