Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Text
Inheritance Hierarchy
- ISlateEditableTextWidget
- SEditableText
- SMultiLineEditableText
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Text/ISlateEditableTextWidget.h |
| Include | #include "Widgets/Text/ISlateEditableTextWidget.h" |
Syntax
class ISlateEditableTextWidget
Remarks
Interface to allow FSlateEditableTextLayout to notify its parent SEditableText/SMultiLineEditableText of changes, as well as query some widget specific state
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SWidget > | Build the context menu content to use for this widget (if any) | ||
| bool | Are we currently able to insert a carriage return? (some widgets have modifier keys that need to be pressed) | ||
| bool | CanTypeCharacter
(
const TCHAR InChar |
Are we able to insert the given character into our text? | |
| void | Ensure that we will get a Tick() soon (either due to having active focus, or something having changed progmatically and requiring an update) Does nothing if the active tick timer is already enabled | ||
| TSharedRef< SWidget > | Get the Slate widget this interface is representing (may not be called during destruction) | ||
| TSharedPtr< SWidget > | Get the Slate widget this interface is representing (may be null during destruction) | ||
| EVirtualKeyboardDismissAction | Get the message action to take when the virtual keyboard is dismissed by the user | ||
| FVirtualKeyboardOptions | Get the options for the virtual keyboard used for this widget | ||
| EVirtualKeyboardTrigger | Get the type of event that will trigger the display of the virtual keyboard | ||
| EKeyboardType | Get the type of virtual keyboard to use for this widget | ||
| bool | Is the text edit multi-line aware? | ||
| bool | Is the text displaying a password and should be obscured? | ||
| bool | Is the text currently read-only? | ||
| void | OnCursorMoved
(
const FTextLocation& InLocation |
Called when the cursor is moved within the text area | |
| void | OnTextChanged
(
const FText& InText |
Called when the text has been changed by an edit operation | |
| void | OnTextCommitted
(
const FText& InText, |
Called when the text control has committed its current edit changes | |
| bool | Should we clear the keyboard focus when the user commits text to this widget? | ||
| bool | Should the text clear its selection the widget loses focus? | ||
| bool | Should the cursor be jumped to the end of the document when the widget gains focus? | ||
| bool | Should we revert the text back to its original state when the user presses escape? | ||
| bool | Should we select all text when the user commits text to this widget? | ||
| bool | Should the text be selected when the widget gains focus? | ||
| bool | Should we select word on mouse double click? | ||
| float | UpdateAndClampHorizontalScrollBar
(
const float InViewOffset, |
Called when the fraction and offset of the horizontal scroll area has been recalculated. | |
| float | UpdateAndClampVerticalScrollBar
(
const float InViewOffset, |
Called when the fraction and offset of the vertical scroll area has been recalculated. |