Files
FlaxEngine/Source/Engine/UI/GUI/DragDataText.cs
2024-02-26 19:00:48 +01:00

26 lines
640 B
C#

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
namespace FlaxEngine.GUI
{
/// <summary>
/// The drag and drop text data.
/// </summary>
/// <seealso cref="FlaxEngine.GUI.DragData" />
public class DragDataText : DragData
{
/// <summary>
/// The text.
/// </summary>
public readonly string Text;
/// <summary>
/// Initializes a new instance of the <see cref="DragDataText"/> class.
/// </summary>
/// <param name="text">The text.</param>
public DragDataText(string text)
{
Text = text;
}
}
}