using System;
namespace Gwen.Control
{
///
/// Radio button.
///
public class RadioButton : CheckBox
{
///
/// Determines whether unchecking is allowed.
///
protected override bool AllowUncheck
{
get { return false; }
}
///
/// Initializes a new instance of the class.
///
/// Parent control.
public RadioButton(Base parent)
: base(parent)
{
SetSize(15, 15);
MouseInputEnabled = true;
IsTabable = false;
}
///
/// Renders the control using specified skin.
///
/// Skin to use.
protected override void Render(Skin.Base skin)
{
skin.DrawRadioButton(this, IsChecked, IsDepressed);
}
}
}