using System;
//using System.Drawing;
using Gwen.Control;
namespace Gwen.ControlInternal
{
///
/// Property button.
///
public class ColorButton : Button
{
private Color m_Color;
///
/// Current color value.
///
public Color Color { get { return m_Color; } set { m_Color = value; } }
///
/// Initializes a new instance of the class.
///
/// Parent control.
public ColorButton(Base parent) : base(parent)
{
m_Color = Color.Black;
Text = String.Empty;
}
///
/// Renders the control using specified skin.
///
/// Skin to use.
protected override void Render(Skin.Base skin)
{
skin.Renderer.DrawColor = m_Color;
skin.Renderer.DrawFilledRect(RenderBounds);
}
}
}