Navigation
API > API/Runtime > API/Runtime/Slate
Slate's InlineEditableTextBlock's are double selectable to go from a STextBlock to become SEditableTextBox.
| Name | SInlineEditableTextBlock |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Text/SInlineEditableTextBlock.h |
| Include Path | #include "Widgets/Text/SInlineEditableTextBlock.h" |
Syntax
class SInlineEditableTextBlock : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SInlineEditableTextBlock
- FSlateControlledConstruction → SWidget → SCompoundWidget → SInlineEditableTextBlock
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~SInlineEditableTextBlock() |
Widgets/Text/SInlineEditableTextBlock.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActiveTimerHandle | TWeakPtr< FActiveTimerHandle > | The handle to the active timer | Widgets/Text/SInlineEditableTextBlock.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct this widget. Called by the SNew()Slate macro. | Widgets/Text/SInlineEditableTextBlock.h | |
void EnterEditingMode() |
Switches the widget to editing mode | Widgets/Text/SInlineEditableTextBlock.h | |
void ExitEditingMode() |
Switches the widget to label mode. | Widgets/Text/SInlineEditableTextBlock.h | |
FText GetText() |
Return the current text | Widgets/Text/SInlineEditableTextBlock.h | |
bool IsInEditMode() |
Checks if the widget is in edit mode | Widgets/Text/SInlineEditableTextBlock.h | |
void SetHighlightText
(
const TAttribute< FText >& InText |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetHintText
(
const TAttribute< FText >& InHintText |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetMaximumLength
(
const TAttribute< int32 >& InMaximumLength |
Sets the maximum text length that will be accepted by the widget | Widgets/Text/SInlineEditableTextBlock.h | |
void SetOnEnterEditingMode
(
FSimpleDelegate InOnEnterEditingMode |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetOnExitEditingMode
(
FSimpleDelegate InOnExitEditingMode |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetOnExitEditingMode
(
FIsSelected InIsSelected |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetOnTextCommitted
(
FOnTextCommitted InOnTextCommitted |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetOnVerifyTextChanged
(
FOnVerifyTextChanged InOnVerifyTextChanged |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetOverflowPolicy
(
TOptional< ETextOverflowPolicy > InOverflowPolicy |
Sets the overflow policy for this text block | Widgets/Text/SInlineEditableTextBlock.h | |
void SetReadOnly
(
const TAttribute< bool >& bInIsReadOnly |
Widgets/Text/SInlineEditableTextBlock.h | ||
void SetText
(
const TAttribute< FText >& InText |
Widgets/Text/SInlineEditableTextBlock.h | ||
| Widgets/Text/SInlineEditableTextBlock.h | |||
void SetWrapTextAt
(
const TAttribute< float >& InWrapTextAt |
Sets the wrap text at attribute. See WrapTextAt attribute | Widgets/Text/SInlineEditableTextBlock.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FReply OnDragOver
(
const FGeometry& MyGeometry, |
Widgets/Text/SInlineEditableTextBlock.h | ||
| Widgets/Text/SInlineEditableTextBlock.h | |||
virtual FReply OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Widgets/Text/SInlineEditableTextBlock.h | ||
virtual FReply OnMouseButtonDown
(
const FGeometry& MyGeometry, |
Widgets/Text/SInlineEditableTextBlock.h | ||
virtual bool SupportsKeyboardFocus() |
See SWidget::SupportsKeyboardFocus(). | Widgets/Text/SInlineEditableTextBlock.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CancelEditMode() |
Cancels the edit mode and switches back to label mode | Widgets/Text/SInlineEditableTextBlock.h | |
void OnTextBoxCommitted
(
const FText& InText, |
Callback when the text box is committed, switches back to label mode. | Widgets/Text/SInlineEditableTextBlock.h | |
void OnTextChanged
(
const FText& InText |
Callback for the text box's OnTextChanged event | Widgets/Text/SInlineEditableTextBlock.h |