using System;
using Gwen.Control;
namespace Gwen.ControlInternal
{
///
/// ComboBox arrow.
///
public class DownArrow : Base
{
private readonly ComboBox m_ComboBox;
///
/// Initializes a new instance of the class.
///
/// Parent control.
public DownArrow(ComboBox parent)
: base(parent) // or Base?
{
MouseInputEnabled = false;
SetSize(15, 15);
m_ComboBox = parent;
}
///
/// Renders the control using specified skin.
///
/// Skin to use.
protected override void Render(Skin.Base skin)
{
skin.DrawComboBoxArrow(this, m_ComboBox.IsHovered, m_ComboBox.IsDepressed, m_ComboBox.IsOpen, m_ComboBox.IsDisabled);
}
}
}