Files
FlaxEngine/Source/Engine/UI/GUI/Common/Spacer.cs
2023-01-10 15:29:37 +01:00

31 lines
867 B
C#

// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
namespace FlaxEngine.GUI
{
/// <summary>
/// Helper control used to insert blank space into the layout.
/// </summary>
/// <seealso cref="FlaxEngine.GUI.ContainerControl" />
public sealed class Spacer : ContainerControl
{
/// <summary>
/// Initializes a new instance of the <see cref="Spacer"/> class.
/// </summary>
public Spacer()
: this(100, 100)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Spacer"/> class.
/// </summary>
/// <param name="width">The width.</param>
/// <param name="height">The height.</param>
public Spacer(float width, float height)
: base(0, 0, width, height)
{
AutoFocus = false;
}
}
}