using System;
using Gwen.Control;
namespace Gwen.ControlInternal
{
///
/// Slider bar.
///
public class SliderBar : Dragger
{
private bool m_bHorizontal;
///
/// Indicates whether the bar is horizontal.
///
public bool IsHorizontal { get { return m_bHorizontal; } set { m_bHorizontal = value; } }
///
/// Initializes a new instance of the class.
///
/// Parent control.
public SliderBar(Base parent)
: base(parent)
{
Target = this;
RestrictToParent = true;
}
///
/// Renders the control using specified skin.
///
/// Skin to use.
protected override void Render(Skin.Base skin)
{
skin.DrawSliderButton(this, IsHeld, IsHorizontal);
}
}
}