Files
UnrealEngineUWP/Engine/Source/Editor/EditorWidgets/Public/STemplateStringEditableTextBox.h
George Rolfe 04df2dac7c TemplateString + customization
#jira none
#rb sebastian.nordgren
#preflight 6295f14f926be5fb68b3e29a

[CL 20435453 by George Rolfe in ue5-main branch]
2022-05-31 07:40:18 -04:00

32 lines
917 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/Input/SMultiLineEditableTextBox.h"
class ITextLayoutMarshaller;
class EDITORWIDGETS_API STemplateStringEditableTextBox : public SMultiLineEditableTextBox
{
public:
SLATE_BEGIN_ARGS(STemplateStringEditableTextBox)
{}
/** The initial text that will appear in the widget. */
SLATE_ATTRIBUTE(FText, Text)
/** The list of available arguments to use in this template string. */
SLATE_ATTRIBUTE(TArray<FString>, ValidArguments)
/** The marshaller used to get/set the raw text to/from the text layout. */
SLATE_ARGUMENT(TSharedPtr<ITextLayoutMarshaller>, Marshaller)
/** Called whenever the text is changed interactively by the user. */
SLATE_EVENT(FOnTextChanged, OnTextChanged)
SLATE_END_ARGS()
/** Constructs this widget with InArgs */
void Construct(const FArguments& InArgs);
};