Files
FlaxEngine/Source/Editor/CustomEditors/Elements/LabelElement.cs
2022-01-14 13:31:12 +01:00

35 lines
878 B
C#

// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.
using FlaxEngine;
using FlaxEngine.GUI;
namespace FlaxEditor.CustomEditors.Elements
{
/// <summary>
/// The label element.
/// </summary>
/// <seealso cref="FlaxEditor.CustomEditors.LayoutElement" />
public class LabelElement : LayoutElement
{
/// <summary>
/// The label.
/// </summary>
public readonly Label Label;
/// <summary>
/// Initializes a new instance of the <see cref="CheckBoxElement"/> class.
/// </summary>
public LabelElement()
{
Label = new Label(0, 0, 100, 18)
{
HorizontalAlignment = TextAlignment.Near
};
// TODO: auto height for label
}
/// <inheritdoc />
public override Control Control => Label;
}
}