// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using FlaxEngine;
using FlaxEngine.GUI;
namespace FlaxEditor.GUI.ContextMenu
{
///
/// Context Menu separator control that visually separate chunks of the popup menu items.
///
///
[HideInEditor]
public class ContextMenuSeparator : ContextMenuItem
{
///
/// Initializes a new instance of the class.
///
/// The parent context menu.
public ContextMenuSeparator(ContextMenu parent)
: base(parent, 8, 4)
{
}
///
public override void Draw()
{
base.Draw();
// Draw separator line
Render2D.FillRectangle(new Rectangle(0, 1, Width - 4, 1), Style.Current.LightBackground);
}
}
}