// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
namespace FlaxEngine.GUI
{
///
/// Helper control used to insert blank space into the layout.
///
///
[ActorToolbox("GUI")]
public sealed class Spacer : ContainerControl
{
///
/// Initializes a new instance of the class.
///
public Spacer()
: this(100, 100)
{
}
///
/// Initializes a new instance of the class.
///
/// The width.
/// The height.
public Spacer(float width, float height)
: base(0, 0, width, height)
{
AutoFocus = false;
}
///
public override bool ContainsPoint(ref Float2 location, bool precise = false)
{
if (precise) // Ignore as visual-only element
return false;
return base.ContainsPoint(ref location, precise);
}
}
}