Files
FlaxEngine/Source/Editor/CustomEditors/Elements/Container/SpaceElement.cs

31 lines
790 B
C#

// Copyright (c) Wojciech Figat. All rights reserved.
using FlaxEngine.GUI;
namespace FlaxEditor.CustomEditors.Elements
{
/// <summary>
/// The spacer element.
/// </summary>
/// <seealso cref="FlaxEditor.CustomEditors.LayoutElementsContainer" />
public class SpaceElement : LayoutElementsContainer
{
/// <summary>
/// The spacer.
/// </summary>
public readonly Spacer Spacer = new Spacer(0, 0);
/// <summary>
/// Initializes the element.
/// </summary>
/// <param name="height">The height.</param>
public void Init(float height)
{
Spacer.Height = height;
}
/// <inheritdoc />
public override ContainerControl ContainerControl => Spacer;
}
}