using UnityEngine.UIElements;
namespace Unity.PlasticSCM.Editor
{
internal static class QueryVisualElementsExtensions
{
///
/// Shows the element regardless if it is has been hidden or collapsed.
///
/// The element query
/// The element type
internal static void Show(this UQueryBuilder query)
where T: VisualElement
{
((T)query).Show();
}
///
/// Removes the element from the layout, freeing its space and position.
///
/// The element query
/// The element type
internal static void Collapse(this UQueryBuilder query)
where T: VisualElement
{
((T)query).Collapse();
}
///
/// Hides the element while preserving its space and position in the layout.
///
/// The element query
/// The element type
internal static void Hide(this UQueryBuilder query)
where T: VisualElement
{
((T)query).Collapse();
}
}
}